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 Type
    Method
    Description
    default void
    Adds a parameter to this factory.
    boolean
    bind(Object implementation)
    Bind an implementation to the factory.
    default void
    Post initialization.
    void
    This method has to be implemented by every factory in order to allow a proper restart of ProCAKE.
    boolean
    unbind(Object implementation)
    Unbinds an implementation from the factory.
  • Method Details

    • bind

      boolean bind(Object implementation)
      Bind an implementation to the factory.
      Parameters:
      implementation - The object to bind.
      Returns:
      true if the factory accept the implementation, otherwise false .
    • unbind

      boolean unbind(Object implementation)
      Unbinds an implementation from the factory.
      Parameters:
      implementation - The object to unbind.
      Returns:
      true if the factory accept the implementation, otherwise false .
    • 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

      default void addParameter(AbstractParameter param)
      Adds a parameter to this factory.
      Parameters:
      param - the parameter to add
    • postInit

      default void postInit()
      Post initialization.