Class FactoryObjectImplementation

java.lang.Object
de.uni_trier.wi2.procake.utils.composition.FactoryObjectImplementation
Direct Known Subclasses:
AbstractEmptyFactoryObjectImplementation, IOImpl, ModelFactoryObjectImpl, NESTGraphVisualizerImpl, NESTWorkflowVisualizerImpl, OntologyFactoryObjectImpl, SimilarityModelFactoryObjectImpl, TransformationConfigFactoryObjectImpl, WriteableObjectPoolImpl

public abstract class FactoryObjectImplementation extends Object
Each implementation of a factory object must extend this class. The interface is used to be able to initialize the implementation.

The initialization is done by the CompositionManager in three steps:

  • The preInit method is called with the initialization parameters for all implementations.
  • The implementation is bind to the factory.
  • The postInit method is called after all implementations are bind. The implementation can now establish connections to other Factories.
Author:
Rainer Maximini
  • Constructor Details

    • FactoryObjectImplementation

      public FactoryObjectImplementation()
  • Method Details

    • preInit

      public abstract void preInit(AbstractParameter[] parameter)
      Called directly after creating the implementation.
      Parameters:
      parameter - The parameters to initialize the implementation.
    • postInit

      public abstract void postInit()
      Called after all factories are initialized with preInit(AbstractParameter[]) and bind to the factory.
    • getParameters

      public abstract List<Parameter> getParameters()
      Returns:
      Returns a list of available parameters in the implementation. This method can be called without initialization and is never null.
    • getParameter

      public Parameter getParameter(String name)
      Parameters:
      name - The name of the parameter to retrieve.
      Returns:
      Returns the parameter of the implementation with the given name. Returns null if no such operator exists.
      See Also:
    • initParametersBasedOn

      protected void initParametersBasedOn(FactoryObjectImplementation base)
      Initializes parameters of this implementation object based on a given base implementation
      Parameters:
      base - The implementation to base on.