Class FactoryObjectImplementation
- java.lang.Object
-
- de.uni_trier.wi2.procake.utils.composition.FactoryObjectImplementation
-
- Direct Known Subclasses:
AbstractEmptyFactoryObjectImplementation,IOImpl,MessageFormatterImpl,ModelFactoryObjectImpl,NESTGraphVisualizerImpl,NESTWorkflowVisualizerImpl,OntologyFactoryObjectImpl,SimilarityModelFactoryObjectImpl,SomeLogger,TransformationConfigFactoryObjectImpl,WriteableObjectPoolImpl
public abstract class FactoryObjectImplementation extends Object
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
CompositionManagerin 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
Constructors Constructor Description FactoryObjectImplementation()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description ParametergetParameter(String name)abstract List<Parameter>getParameters()protected voidinitParametersBasedOn(FactoryObjectImplementation base)Initializes parameters of this implementation object based on a given base implementationabstract voidpostInit()Called after all factories are initialized withpreInit(AbstractParameter[])and bind to the factory.abstract voidpreInit(AbstractParameter[] parameter)Called directly after creating the implementation.
-
-
-
Method Detail
-
preInit
public abstract void preInit(AbstractParameter[] parameter)
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
public abstract List<Parameter> getParameters()
- Returns:
- Returns a list of available parameters in the implementation. This method can be called
without initialization and is never
null.
-
getParameter
public Parameter getParameter(String name)
- Parameters:
name- The name of the parameter to retrieve.- Returns:
- Returns the parameter of the implementation with the given name. Returns
nullif no such operator exists. - See Also:
getParameters()
-
initParametersBasedOn
protected void initParametersBasedOn(FactoryObjectImplementation base)
Initializes parameters of this implementation object based on a given base implementation- Parameters:
base- The implementation to base on.
-
-