|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ICloneFactoryProvider
Public clone data object factory provider API.
A clone factory provider is used by all CPC modules for the creation of clone objects.
Clone objects are never created directly, circumventing the clone factory provider.
There may only be one active clone factory provider at all times.
3rd party extensions should register their own ICloneObject
, ICloneObjectSupport
and ICloneObjectExtension
classes with the clone factory provider via the extension point:
org.electrocodeogram.cpc.core.cloneDataElements
ICloneObject
,
ICloneObjectSupport
,
ICloneObjectExtension
Method Summary | |
---|---|
ICloneDataElement |
getInstance(java.lang.Class<? extends ICloneDataElement> type)
Creates a new instance of the specified ICloneDataElement sub class. |
ICloneObject |
getInstance(java.lang.Class<? extends ICloneObject> type,
java.lang.String uuid)
Creates a new instance of the specified ICloneObject sub class. |
IStatefulObject |
getInstanceByPersistenceClassIdentifier(java.lang.String persistenceClassIdentifier)
Creates a new instance of a registered IStatefulObject for the given
IStatefulObject.getPersistenceClassIdentifier() value. |
java.util.List<ICloneObjectExtension> |
getRegisteredCloneObjectExtensionObjects(java.lang.Class<? extends ICloneObject> parentType)
Some users of the getRegistered... methods need to create temporary instances of the classes during their processing. |
java.util.List<java.lang.Class<? extends ICloneObjectExtension>> |
getRegisteredCloneObjectExtensions()
Retrieves a list of all registered ICloneObjectExtension implementations. |
java.util.List<java.lang.Class<? extends ICloneObjectExtension>> |
getRegisteredCloneObjectExtensions(java.lang.Class<? extends ICloneObject> parentType)
Same as getRegisteredCloneObjectExtensions() but only returns the extensions
registered for the given ICloneObject type. |
java.util.List<java.lang.Class<? extends ICloneObject>> |
getRegisteredCloneObjects()
Retrieves a list of all registered ICloneObject sub-interface implementations. |
java.util.List<java.lang.Class<? extends ICloneObjectSupport>> |
getRegisteredCloneObjectSupports()
Retrieves a list of all registered ICloneObjectSupport sub-interface implementations. |
Methods inherited from interface org.electrocodeogram.cpc.core.api.provider.IProvider |
---|
getProviderName, toString |
Method Detail |
---|
ICloneDataElement getInstance(java.lang.Class<? extends ICloneDataElement> type)
ICloneDataElement
sub class.
ICloneObject
sub classes a new unique uuid is automatically generated.
Valid values for type are:
ICloneObject
, ICloneObjectSupport
or ICloneObjectExtension
type
- the ICloneDataElement
sub class to create a new instance for, never null.
ICloneDataElement
sub class is available.ICloneObject getInstance(java.lang.Class<? extends ICloneObject> type, java.lang.String uuid)
ICloneObject
sub class.
This method can not be used to create instances for ICloneObjectSupport
sub-interfaces.
Valid values for type are:
type
- the ICloneObject
sub class to create a new instance for, never null.uuid
- the unique uuid to use for the newly created instance.
ICloneObject
sub class is available.IStatefulObject getInstanceByPersistenceClassIdentifier(java.lang.String persistenceClassIdentifier)
IStatefulObject
for the given
IStatefulObject.getPersistenceClassIdentifier()
value.
persistenceClassIdentifier
- the IStatefulObject
persistence class identifier to create an
instance of an implementation class for, never null.
IStatefulObject.getPersistenceClassIdentifier()
or NULL if no such class is available.java.util.List<java.lang.Class<? extends ICloneObject>> getRegisteredCloneObjects()
ICloneObject
sub-interface implementations.
The returned list and it's elements may not be modified.
java.util.List<java.lang.Class<? extends ICloneObjectSupport>> getRegisteredCloneObjectSupports()
ICloneObjectSupport
sub-interface implementations.
The returned list and it's elements may not be modified.
java.util.List<java.lang.Class<? extends ICloneObjectExtension>> getRegisteredCloneObjectExtensions()
ICloneObjectExtension
implementations.
The returned list and it's elements may not be modified.
java.util.List<java.lang.Class<? extends ICloneObjectExtension>> getRegisteredCloneObjectExtensions(java.lang.Class<? extends ICloneObject> parentType)
getRegisteredCloneObjectExtensions()
but only returns the extensions
registered for the given ICloneObject
type.
parentType
- the ICloneObject
type for which all registered extensions should be returned, never null.
java.util.List<ICloneObjectExtension> getRegisteredCloneObjectExtensionObjects(java.lang.Class<? extends ICloneObject> parentType)
IStoreProvider
.
getRegisteredCloneObjectExtensions(Class)
but returns
shared instances of the extensions instead of their classes.
IMPORTANT: the returned objects are shared. Do not modify them in any way.
parentType
- the ICloneObject
type for which all registered extensions should be returned, never null.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |