Class TransformationConfigFactory
java.lang.Object
de.uni_trier.wi2.procake.data.object.transformation.TransformationConfigFactory
- All Implemented Interfaces:
Factory
This is the factory class to access the implementations to the data model interfaces.
The system contains only one TransformationConfig, the default config that can be access via
getDefaultConfig()
. Never call the method newConfig(boolean)
, because this
method is internally called.
- Author:
- Alexander Stromer
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
bind
(TransformationConfigFactoryObject implementation) boolean
Bind an implementation to the factory.static TransformationConfig
Gets the current transformation-configuration.static TransformationConfig
newConfig
(boolean useAsDefault) Creates a new TransformationConfig-object, and optionally uses it as the Factory's default config.void
reset()
This method has to be implemented by every factory in order to allow a proper restart of ProCAKE.static boolean
unbind
(TransformationConfigFactoryObject implementation) boolean
Unbinds an implementation from the factory.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface de.uni_trier.wi2.procake.utils.composition.Factory
addParameter, postInit
-
Method Details
-
bind
-
getDefaultConfig
Gets the current transformation-configuration. There is only one configuration allowed to be in the system, so the configuration will always be the same.- Returns:
-
newConfig
Creates a new TransformationConfig-object, and optionally uses it as the Factory's default config.- Parameters:
useAsDefault
- If true, the newModel
will be the default Model. It is not possible to go back to the previous model.
-
unbind
-
reset
public void reset()Description copied from interface:Factory
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. -
bind
Description copied from interface:Factory
Bind an implementation to the factory. -
unbind
Description copied from interface:Factory
Unbinds an implementation from the factory.
-