Interface Factory
- All Known Implementing Classes:
AdaptationFactory
,IOFactory
,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:
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
addParameter
(AbstractParameter param) Adds a parameter to this factory.boolean
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
Unbinds an implementation from the factory.
-
Method Details
-
bind
Bind an implementation to the factory.- Parameters:
implementation
- The object to bind.- Returns:
true
if the factory accept the implementation, otherwisefalse
.
-
unbind
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
Adds a parameter to this factory.- Parameters:
param
- the parameter to add
-
postInit
default void postInit()Post initialization.
-