@ProviderType
public interface OCDService
Modifier and Type | Method and Description |
---|---|
ComponentConfiguration |
getFactoryComponentOCD(java.lang.String factoryPid)
Returns the
OCD of the registered component factory identified by the provided factoryPid and for
which an OSGi MetaType is registered in the ConfigurationService . |
java.util.List<ComponentConfiguration> |
getFactoryComponentOCDs()
Returns the
OCD s of all registered component factories for which an OSGi MetaType is
is registered in the ConfigurationService . |
java.util.List<ComponentConfiguration> |
getServiceProviderOCDs(java.lang.Class<?>... classes)
Searches the Declarative Services layer for Components implementing any of the specified services and returns a
ComponentConfiguration instance describing it. |
java.util.List<ComponentConfiguration> |
getServiceProviderOCDs(java.lang.String... classNames) |
java.util.List<ComponentConfiguration> getFactoryComponentOCDs()
OCD
s of all registered component factories for which an OSGi MetaType is
is registered in the ConfigurationService
.
OCD
s are returned in the form of a ComponentConfiguraion
instance. The component factory pid
can be obtained by calling ComponentConfiguration.getPid()
method and the actual OCD
can be
obtained by calling the ComponentConfiguration.getDefinition()
method.OCD
s.ComponentConfiguration getFactoryComponentOCD(java.lang.String factoryPid)
OCD
of the registered component factory identified by the provided factoryPid
and for
which an OSGi MetaType is registered in the ConfigurationService
.
OCD
is returned in the form of a ComponentConfiguraion
instance. The component factory pid
can be obtained by calling ComponentConfiguration.getPid()
method and the actual OCD
can be
obtained by calling the ComponentConfiguration.getDefinition()
method.OCD
for the requested component factory if available, or null otherwisejava.util.List<ComponentConfiguration> getServiceProviderOCDs(java.lang.Class<?>... classes)
ComponentConfiguration
instance describing it.
If the ConfigurationService
contains a registered OSGi MetaType for a found Component, it will be
returned inside the ComponentConfiguration
instance.
ComponentConfiguraion
instances in the returned list contain the following information:
ComponentConfiguration.getPid()
method returns the Component name.
ComponentConfiguration.getDefinition()
method returns the OCD
for the found Component if
it is known to the ConfigurationService
, or null
otherwise.
clazzes
- The list of service classes to be used as search filter.ComponentConfiguration
instances representing the found Components.java.util.List<ComponentConfiguration> getServiceProviderOCDs(java.lang.String... classNames)
classNames
- The list of service class or interface names to be used as search filter.ComponentConfiguration
instances representing the found Components.ConfigurationService#getServiceProviderOCDs(Class...)