Class DefaultStructureFactory
java.lang.Object
com.polarion.platform.persistence.spi.DefaultStructureFactory
- All Implemented Interfaces:
IStructureFactory
,ITypedWrapperFactory
- Author:
- dobisekm
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateStructure
(IPObject pobject, IStructType prototype, boolean readOnly, Map data) Creates the instance ofIStructure
, which wraps the given collection (and possibly implements some model specific interface)
-
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 ofIStructure
, which wraps the given collection (and possibly implements some model specific interface)- Specified by:
createStructure
in interfaceIStructureFactory
- Returns:
- structure 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.
-