Class FactoryObjectImplementation
java.lang.Object
de.uni_trier.wi2.procake.utils.composition.FactoryObjectImplementation
- Direct Known Subclasses:
AbstractEmptyFactoryObjectImplementation
,IOImpl
,ModelFactoryObjectImpl
,NESTGraphVisualizerImpl
,NESTWorkflowVisualizerImpl
,OntologyFactoryObjectImpl
,SimilarityModelFactoryObjectImpl
,TransformationConfigFactoryObjectImpl
,WriteableObjectPoolImpl
Each implementation of a factory object must extend this class. The interface is used to be able
to initialize the implementation.
The initialization is done by the CompositionManager
in three steps:
- The preInit method is called with the initialization parameters for all implementations.
- The implementation is bind to the factory.
- The postInit method is called after all implementations are bind. The implementation can now establish connections to other Factories.
- Author:
- Rainer Maximini
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetParameter
(String name) protected void
Initializes parameters of this implementation object based on a given base implementationabstract void
postInit()
Called after all factories are initialized withpreInit(AbstractParameter[])
and bind to the factory.abstract void
preInit
(AbstractParameter[] parameter) Called directly after creating the implementation.
-
Constructor Details
-
FactoryObjectImplementation
public FactoryObjectImplementation()
-
-
Method Details
-
preInit
Called directly after creating the implementation.- Parameters:
parameter
- The parameters to initialize the implementation.
-
postInit
public abstract void postInit()Called after all factories are initialized withpreInit(AbstractParameter[])
and bind to the factory. -
getParameters
- Returns:
- Returns a list of available parameters in the implementation. This method can be called
without initialization and is never
null
.
-
getParameter
- Parameters:
name
- The name of the parameter to retrieve.- Returns:
- Returns the parameter of the implementation with the given name. Returns
null
if no such operator exists. - See Also:
-
initParametersBasedOn
Initializes parameters of this implementation object based on a given base implementation- Parameters:
base
- The implementation to base on.
-