Class DefaultListFactory

java.lang.Object
com.polarion.platform.persistence.spi.DefaultListFactory
All Implemented Interfaces:
IListFactory, ITypedWrapperFactory

public class DefaultListFactory extends Object implements IListFactory
Author:
dobisekm
  • Constructor Details

    • DefaultListFactory

      public DefaultListFactory()
  • Method Details

    • createList

      public ITypedList createList(IPObject pobject, IListType prototype, boolean readOnly, List data)
      Description copied from interface: IListFactory
      Creates the instance of ITypedList, which wraps the given collection (and possibly implements some model specific interface).
      Specified by:
      createList in interface IListFactory
      Returns:
      typed list 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.