|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.felix.dm.impl.metatype.MetaTypeProviderImpl
public class MetaTypeProviderImpl
When a ConfigurationDepdendency is configured with properties metadata, we provide a specific ManagedService which also implements the MetaTypeProvider interface. This interface allows the MetaTypeService to retrieve our properties metadata, which will then be handled by webconsole.
Constructor Summary | |
---|---|
MetaTypeProviderImpl(String pid,
BundleContext ctx,
Logger logger,
ManagedService msDelegate,
ManagedServiceFactory msfDelegate)
|
Method Summary | |
---|---|
void |
add(PropertyMetaData property)
Registers the metatype information of a given configuration property |
void |
deleted(String pid)
|
String[] |
getLocales()
Returns all the Locales our bundle is containing. |
String |
getName()
|
ObjectClassDefinition |
getObjectClassDefinition(String id,
String locale)
Returns the ObjectClassDefinition for a given Pid/Locale. |
void |
setDescription(String description)
A human readable description of the PID this annotation is associated with. |
void |
setLocalization(String path)
Points to the basename of the Properties file that can localize the Meta Type informations. |
void |
setName(String heading)
The label used to display the tab name (or section) where the properties are displayed. |
void |
updated(Dictionary properties)
We also implements the ManagedService and we just delegates the configuration handling to our associated ConfigurationDependency. |
void |
updated(String pid,
Dictionary properties)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MetaTypeProviderImpl(String pid, BundleContext ctx, Logger logger, ManagedService msDelegate, ManagedServiceFactory msfDelegate)
Method Detail |
---|
public void add(PropertyMetaData property)
property
- public void setDescription(String description)
public void setName(String heading)
public void setLocalization(String path)
setLocalization("person")
would match person_du_NL.properties in the root bundle directory.
The default localization base name for the properties is OSGI-INF/l10n/bundle, but can
be overridden by the manifest Bundle-Localization header (see core specification, in section Localization on page 68).
public String[] getLocales()
getLocales
in interface MetaTypeProvider
public ObjectClassDefinition getObjectClassDefinition(String id, String locale)
getObjectClassDefinition
in interface MetaTypeProvider
public void updated(Dictionary properties) throws ConfigurationException
updated
in interface ManagedService
ConfigurationException
public void deleted(String pid)
deleted
in interface ManagedServiceFactory
public String getName()
getName
in interface ManagedServiceFactory
public void updated(String pid, Dictionary properties) throws ConfigurationException
updated
in interface ManagedServiceFactory
ConfigurationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |