class ScrManagedServiceMetaTypeProvider extends ScrManagedService implements org.osgi.service.metatype.MetaTypeProvider
ScrManagedServiceMetaTypeProvider
receives the Declarative
Services Runtime configuration (by extending the ScrManagedService
class but also provides a MetaType Service ObjectClassDefinition.
This class is instantiated in a ServiceFactory manner by the
ScrManagedServiceServiceFactory
when the Configuration Admin service
implementation and API is available and if the Metatype Service API is also
available.
Requires OSGi Metatype Service API available
ScrManagedServiceServiceFactory
Modifier and Type | Class and Description |
---|---|
private static class |
ScrManagedServiceMetaTypeProvider.AttributeDefinitionImpl |
Modifier | Constructor and Description |
---|---|
private |
ScrManagedServiceMetaTypeProvider(ScrConfigurationImpl scrConfiguration) |
Modifier and Type | Method and Description |
---|---|
(package private) static ScrManagedService |
create(ScrConfigurationImpl scrConfiguration) |
java.lang.String[] |
getLocales() |
org.osgi.service.metatype.ObjectClassDefinition |
getObjectClassDefinition(java.lang.String id,
java.lang.String locale) |
getScrConfiguration, updated
private ScrManagedServiceMetaTypeProvider(ScrConfigurationImpl scrConfiguration)
static ScrManagedService create(ScrConfigurationImpl scrConfiguration)
public java.lang.String[] getLocales()
getLocales
in interface org.osgi.service.metatype.MetaTypeProvider
MetaTypeProvider.getLocales()
public org.osgi.service.metatype.ObjectClassDefinition getObjectClassDefinition(java.lang.String id, java.lang.String locale)
getObjectClassDefinition
in interface org.osgi.service.metatype.MetaTypeProvider
MetaTypeProvider.getObjectClassDefinition(java.lang.String, java.lang.String)