Class DefaultStructureFactory

java.lang.Object
com.polarion.platform.persistence.spi.DefaultStructureFactory
All Implemented Interfaces:
IStructureFactory, ITypedWrapperFactory

public class DefaultStructureFactory extends Object implements IStructureFactory
Author:
dobisekm
  • Constructor Details

    • DefaultStructureFactory

      public DefaultStructureFactory()
  • Method Details

    • createStructure

      public IStructure createStructure(IPObject pobject, IStructType prototype, boolean readOnly, Map data)
      Description copied from interface: IStructureFactory
      Creates the instance of IStructure, which wraps the given collection (and possibly implements some model specific interface)
      Specified by:
      createStructure in interface IStructureFactory
      Returns:
      structure instance
    • getCommonSuperclass

      public Class getCommonSuperclass()
      Specified by:
      getCommonSuperclass in interface ITypedWrapperFactory
      Returns:
      The interface implemented by all instances created by this factory.

      The returned class must follow the inheritance structure from the model. Therefore the returned class must also be instanceof of the classes returned by their supertype factories (applies to IPObject wrappers only.