Framework Professional Edition Package


org.mbs.services.metatype
Interface MetaTypeProviderExtern

All Superinterfaces:
com.prosyst.util.io.Externalizable, MetaTypeProvider

public interface MetaTypeProviderExtern
extends MetaTypeProvider, com.prosyst.util.io.Externalizable

Extension of the OSGi MetaTypeProvider interface. Metatype providers implementing it have the ability to return a set of modified configurations of the original (the one which could be created by the ObjectClassDefinition with the same pid, returned by the MetaTypeProvider.getObjectClassDefinition(java.lang.String, java.lang.String) method). A modified configuration is represented by a single ObjectClassDefinition which have to return a set of AttributeDefinition instances. Default values of the latter ones are treated as they override the values with the same id of the original configuration. Objects implementing this interface are additionally serializable.

See Also:
MetaTypeProvider, Externalizable

Field Summary
static java.lang.String METADATA_TYPE
          Property key used to point the metatype provider type when registered into the OSGi registry rather then provided via XML.
static java.lang.String METADATA_VERSION
          Property key used to point the metatype provider version when registered into the OSGi registry rather then provided via XML.
 
Method Summary
 ObjectClassDefinition[] getConfigurationObjects(java.lang.String pid)
          Provides ability to metatype providers to contain predefined configuration modifications.
 
Methods inherited from interface org.osgi.service.metatype.MetaTypeProvider
getLocales, getObjectClassDefinition
 
Methods inherited from interface com.prosyst.util.io.Externalizable
readObject, writeObject
 

Field Detail

METADATA_TYPE

static final java.lang.String METADATA_TYPE
Property key used to point the metatype provider type when registered into the OSGi registry rather then provided via XML.

See Also:
MetaDataManager, Constant Field Values

METADATA_VERSION

static final java.lang.String METADATA_VERSION
Property key used to point the metatype provider version when registered into the OSGi registry rather then provided via XML.

See Also:
MetaDataManager, Constant Field Values
Method Detail

getConfigurationObjects

ObjectClassDefinition[] getConfigurationObjects(java.lang.String pid)
Provides ability to metatype providers to contain predefined configuration modifications. This method is expected to return non null result if it has been retrieved by MetaDataManager.getMetaTypeProvider(java.lang.String, boolean) method with parameter original set to true.

Parameters:
pid - The pid of the requested configuration object.
Returns:
Array of ObjectClassDefinition objects each of which have to be treated as modification of the original configuration creatable by the object definition with the same pid, returned by the MetaTypeProvider.getObjectClassDefinition(java.lang.String, java.lang.String) method.

Framework Professional Edition Package


Copyright © 1999-2007 ProSyst Software GmbH. All Rights Reserved