Class MetaModelFactory

java.lang.Object
com.aquima.interactions.metamodel.MetaModelFactory
All Implemented Interfaces:
IMetaModelFactory

public class MetaModelFactory extends Object implements IMetaModelFactory
Factory class that may be used to create an instance of IMetaModel.
Since:
5.0
Author:
Jon van Leuven
  • Field Details

    • PROPERTY

      public static final String PROPERTY
      The key that may be used to define a custom implementation in the environment.
      See Also:
  • Constructor Details

    • MetaModelFactory

      protected MetaModelFactory()
  • Method Details

    • getInstance

      public static IMetaModelFactory getInstance()
      Get an instance of IMetaModelFactory. If there is an implementation register via the ClassFactory (with key 'metamodel-factory'), an instance of this class is returned. Note: keep in mind that the instance returned is kept in a static member, so once this class is loaded always the same instance is returned.
      Returns:
      Factory implementation.
    • create

      public IMetaModel create(IMetaModelDS datasource, IDomainValuesFactory domainFactory)
      Description copied from interface: IMetaModelFactory
      This method creates a meta model instance using the data source provided.
      Specified by:
      create in interface IMetaModelFactory
      Parameters:
      datasource - The data source providing the data needed to initialize a meta model.
      domainFactory - The domain factory for providing domain definitions for external domains.
      Returns:
      Meta model instance for the specified data source.