Framework Professional Edition Package


org.mbs.services.metatype
Interface MetaDataPlugin


public interface MetaDataPlugin

The mean of the interface is to provide machanism for defining new manifest headers for providing metadata by a XML resource. It also has the responsibility of instructing the MetaDataManager service how to process the metatype providers created from the parsed XMLs. When registered as service into the framework instances of this interface should include property METADATA in its registration properties with String array value which specifies metatype bundle manifest headers which are of interest.
Normally there will be only one plugin per type but if more, the type should be considered storable if any of them requires so.

See Also:
MetaDataManager

Field Summary
static java.lang.String METADATA
          Constant for the property key which metadata plugins have to provide when registered into the framework service registry.
 
Method Summary
 boolean processed(java.lang.String type)
          This method should be called by the MetaDataManager service to determine how the specified metadata should be treated.
 

Field Detail

METADATA

static final java.lang.String METADATA
Constant for the property key which metadata plugins have to provide when registered into the framework service registry. Value must be of type String array and must contain all meta info types this plugin is responsible for.

See Also:
Constant Field Values
Method Detail

processed

boolean processed(java.lang.String type)
This method should be called by the MetaDataManager service to determine how the specified metadata should be treated. If this method returns true the MetaDataManager will persistently store the parsed metatype. If false is returned the metatype won't be stored and will be parsed upon request.

Parameters:
type - The metadata type.
Returns:
whether the MetaTypeProviders of the specified type should be stored.

Framework Professional Edition Package


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