Class DefaultListFactory
java.lang.Object
com.polarion.platform.persistence.spi.DefaultListFactory
- All Implemented Interfaces:
IListFactory
,ITypedWrapperFactory
- Author:
- dobisekm
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateList
(IPObject pobject, IListType prototype, boolean readOnly, List data) Creates the instance ofITypedList
, which wraps the given collection (and possibly implements some model specific interface).
-
Constructor Details
-
DefaultListFactory
public DefaultListFactory()
-
-
Method Details
-
createList
Description copied from interface:IListFactory
Creates the instance ofITypedList
, which wraps the given collection (and possibly implements some model specific interface).- Specified by:
createList
in interfaceIListFactory
- Returns:
- typed list instance
-
getCommonSuperclass
- Specified by:
getCommonSuperclass
in interfaceITypedWrapperFactory
- 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.
-