|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.felix.eventadmin.impl.MetaTypeProviderImpl
public class MetaTypeProviderImpl
The optional meta type provider for the event admin config.
Constructor Summary | |
---|---|
MetaTypeProviderImpl(ManagedService delegatee,
int cacheSize,
int threadPoolSize,
int timeout,
boolean requireTopic,
String[] ignoreTimeout)
|
Method Summary | |
---|---|
String[] |
getLocales()
Return a list of available locales. |
ObjectClassDefinition |
getObjectClassDefinition(String id,
String locale)
Returns an object class definition for the specified id localized to the specified locale. |
void |
updated(Dictionary properties)
Update the configuration for a Managed Service. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MetaTypeProviderImpl(ManagedService delegatee, int cacheSize, int threadPoolSize, int timeout, boolean requireTopic, String[] ignoreTimeout)
Method Detail |
---|
public void updated(Dictionary properties) throws ConfigurationException
ManagedService
When the implementation of updated(Dictionary)
detects any
kind of error in the configuration properties, it should create a new
ConfigurationException
which describes the problem. This
can allow a management system to provide useful information to a human
administrator.
If this method throws any other Exception
, the
Configuration Admin service must catch it and should log it.
The Configuration Admin service must call this method asynchronously which initiated the callback. This implies that implementors of Managed Service can be assured that the callback will not take place during registration when they execute the registration in a synchronized method.
updated
in interface ManagedService
properties
- A copy of the Configuration properties, or
null
. This argument must not contain the
"service.bundleLocation" property. The value of this property may
be obtained from the Configuration.getBundleLocation
method.
ConfigurationException
- when the update failsManagedService.updated(java.util.Dictionary)
public String[] getLocales()
MetaTypeProvider
Locale
class.
getLocales
in interface MetaTypeProvider
null
if there is no
locale specific localization can be found.MetaTypeProvider.getLocales()
public ObjectClassDefinition getObjectClassDefinition(String id, String locale)
MetaTypeProvider
The locale parameter must be a name that consists of language
[
"_" country
[ "_" variation
] ] as is customary in
the Locale
class. This Locale
class is not used
because certain profiles do not contain it.
getObjectClassDefinition
in interface MetaTypeProvider
id
- The ID of the requested object class. This can be a pid or
factory pid returned by getPids or getFactoryPids.locale
- The locale of the definition or null
for default
locale.
ObjectClassDefinition
object.MetaTypeProvider.getObjectClassDefinition(java.lang.String, java.lang.String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |