Class 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 method newConfig(boolean), because this method is internally called.

    Author:
    Alexander Stromer
    See Also:
    Factory
    • Method Detail

      • 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 new Model will be the default Model. It is not possible to go back to the previous model.
      • 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.
        Specified by:
        reset in interface Factory
      • bind

        public boolean bind​(Object implementation)
        Description copied from interface: Factory
        Bind an implementation to the factory.
        Specified by:
        bind in interface Factory
        Parameters:
        implementation -
        Returns:
        Returns true if the bind was successful
        See Also:
        Factory.bind(java.lang.Object)
      • unbind

        public boolean unbind​(Object implementation)
        Description copied from interface: Factory
        Unbinds an implementation from the factory.
        Specified by:
        unbind in interface Factory
        Parameters:
        implementation -
        Returns:
        Returns true if the unbind was successful
        See Also:
        Factory.unbind(java.lang.Object)