Class TransformationConfigFactory
- java.lang.Object
-
- de.uni_trier.wi2.procake.data.object.transformation.TransformationConfigFactory
-
- All Implemented Interfaces:
Factory
public class TransformationConfigFactory extends Object implements 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 methodnewConfig(boolean), because this method is internally called.- Author:
- Alexander Stromer
- See Also:
Factory
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleanbind(TransformationConfigFactoryObject implementation)booleanbind(Object implementation)Bind an implementation to the factory.static TransformationConfiggetDefaultConfig()Gets the current transformation-configuration.static TransformationConfignewConfig(boolean useAsDefault)Creates a new TransformationConfig-object, and optionally uses it as the Factory's default config.voidreset()This method has to be implemented by every factory in order to allow a proper restart of ProCAKE.static booleanunbind(TransformationConfigFactoryObject implementation)booleanunbind(Object implementation)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 Detail
-
bind
public static boolean bind(TransformationConfigFactoryObject implementation)
-
getDefaultConfig
public static TransformationConfig 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
public static TransformationConfig newConfig(boolean useAsDefault)
Creates a new TransformationConfig-object, and optionally uses it as the Factory's default config.- Parameters:
useAsDefault- If true, the newModelwill be the default Model. It is not possible to go back to the previous model.
-
unbind
public static boolean unbind(TransformationConfigFactoryObject implementation)
-
reset
public void reset()
Description copied from interface:FactoryThis 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
public boolean bind(Object implementation)
Description copied from interface:FactoryBind an implementation to the factory.- Specified by:
bindin interfaceFactory- Parameters:
implementation-- Returns:
- Returns
trueif the bind was successful - See Also:
Factory.bind(java.lang.Object)
-
unbind
public boolean unbind(Object implementation)
Description copied from interface:FactoryUnbinds an implementation from the factory.- Specified by:
unbindin interfaceFactory- Parameters:
implementation-- Returns:
- Returns
trueif the unbind was successful - See Also:
Factory.unbind(java.lang.Object)
-
-