Interface Factory
-
- All Known Implementing Classes:
AdaptationFactory
,IOFactory
,LoggerFactory
,MessageFormatterFactory
,ModelFactory
,NESTGraphVisualizerFactory
,NESTWorkflowVisualizerFactory
,ObjectPoolFactory
,OntologyFactory
,RetrievalFactory
,SimilarityModelFactory
,TransformationConfigFactory
public interface Factory
The Factory interface defined three methods that must be implemented by each Factory implementation. Please note that each factory implementation should have a private constructor in order to prevent the creation of instances.- Author:
- Rainer Maximini
- See Also:
de.uni_trier.wi2.procake.utils.composition
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default void
addParameter(AbstractParameter param)
Adds a parameter to this factory.boolean
bind(Object implementation)
Bind an implementation to the factory.default void
postInit()
Post initialization.void
reset()
This method has to be implemented by every factory in order to allow a proper restart of ProCAKE.boolean
unbind(Object implementation)
Unbinds an implementation from the factory.
-
-
-
Method Detail
-
bind
boolean bind(Object implementation)
Bind an implementation to the factory.- Parameters:
implementation
- The object to bind.- Returns:
true
if the factory accept the implementation, otherwisefalse
.
-
unbind
boolean unbind(Object implementation)
Unbinds an implementation from the factory.- Parameters:
implementation
- The object to unbind.- Returns:
true
if the factory accept the implementation, otherwisefalse
.
-
reset
void reset()
This method has to be implemented by every factory in order to allow a proper restart of ProCAKE. For example, this method might reset the default factory object or other stateful variables.
-
addParameter
default void addParameter(AbstractParameter param)
Adds a parameter to this factory.- Parameters:
param
- the parameter to add
-
postInit
default void postInit()
Post initialization.
-
-