Class ProfileFactory

java.lang.Object
com.aquima.interactions.profile.ProfileFactory
All Implemented Interfaces:
IProfileFactory

public class ProfileFactory extends Object implements IProfileFactory
Factory class that may be used to create an instance of IProfile.
Since:
5.0
Author:
O. Kerpershoek, Jon van Leuven
  • Field Details

    • PROPERTY

      public static final String PROPERTY
      This define denotates the key that is used to locate a profile factory implementation.
      See Also:
  • Constructor Details

    • ProfileFactory

      public ProfileFactory()
  • Method Details

    • getInstance

      public static IProfileFactory getInstance()
      Get an instance of IProfileFactory. If there is an implementation register via the ClassFactory (with key 'profile-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 method is called always the same instance is returned.
      Returns:
      IProfileFactory implementation.
    • create

      public IProfile create(IMetaModel model)
      Description copied from interface: IProfileFactory
      This method creates a profile for the specified meta model.
      Specified by:
      create in interface IProfileFactory
      Parameters:
      model - The meta model for which the profile should be created.
      Returns:
      The profile instance for the specified meta model.