@ProviderType public interface BlueprintContainer
ACTIVE state (and also the STARTING state for bundles
awaiting lazy activation) can have an associated Blueprint Container. A given
Bundle Context has at most one associated Blueprint Container.
A Blueprint Container can be obtained by injecting the predefined
"blueprintContainer" component id. The Blueprint Container is also
registered as a service and its managed components can be queried.| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getComponentIds()
Returns the set of component ids managed by this Blueprint Container.
|
Object |
getComponentInstance(String id)
Return the component instance for the specified component id.
|
ComponentMetadata |
getComponentMetadata(String id)
Return the Component Metadata object for the component with the specified
component id.
|
<T extends ComponentMetadata> |
getMetadata(Class<T> type)
Return all
ComponentMetadata objects of the specified Component
Metadata type. |
Set<String> getComponentIds()
Object getComponentInstance(String id)
id - The component id for the requested component instance.NoSuchComponentException - If no component with the specified
component id is managed by this Blueprint Container.ComponentMetadata getComponentMetadata(String id)
id - The component id for the requested Component Metadata.NoSuchComponentException - If no component with the specified
component id is managed by this Blueprint Container.<T extends ComponentMetadata> Collection<T> getMetadata(Class<T> type)
ComponentMetadata objects of the specified Component
Metadata type. The supported Component Metadata types are
ComponentMetadata (which returns the Component Metadata for all
defined manager types), BeanMetadata ,
ServiceReferenceMetadata (which returns both
ReferenceMetadata and ReferenceListMetadata objects), and
ServiceMetadata. The collection will include all Component
Metadata objects of the requested type, including components that are
declared inline.T - Type of Component Metadata.type - The super type or type of the requested Component Metadata
objects.Copyright © OSGi Alliance (2000, 2015). All Rights Reserved. Licensed under the OSGi Specification License, Version 2.0