|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.osgi.blueprint.container.SpringBlueprintContainer
public class SpringBlueprintContainer
Default BlueprintContainer
implementation. Wraps a Spring's ConfigurableListableBeanFactory
to the
BlueprintContainer interface.
Note: This class does not fully implements the Blueprint contract: for example it does not fire any of the
Blueprint events nor performs exception handling - these concerned are left to the Blueprint extender.
Constructor Summary | |
---|---|
SpringBlueprintContainer(ConfigurableApplicationContext applicationContext)
|
Method Summary | |
---|---|
Set<String> |
getComponentIds()
Returns the set of component ids managed by this Blueprint Container. |
Object |
getComponentInstance(String name)
Return the component instance for the specified component id. |
ComponentMetadata |
getComponentMetadata(String name)
Return the Component Metadata object for the component with the specified component id. |
Collection<?> |
getMetadata(Class type)
Return all ComponentMetadata objects of the specified Component
Metadata type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SpringBlueprintContainer(ConfigurableApplicationContext applicationContext)
Method Detail |
---|
public Object getComponentInstance(String name) throws NoSuchComponentException
BlueprintContainer
getComponentInstance
in interface BlueprintContainer
name
- The component id for the requested component instance.
NoSuchComponentException
- If no component with the specified
component id is managed by this Blueprint Container.public ComponentMetadata getComponentMetadata(String name) throws NoSuchComponentException
BlueprintContainer
getComponentMetadata
in interface BlueprintContainer
name
- The component id for the requested Component Metadata.
NoSuchComponentException
- If no component with the specified
component id is managed by this Blueprint Container.public Set<String> getComponentIds()
BlueprintContainer
getComponentIds
in interface BlueprintContainer
public Collection<?> getMetadata(Class type)
BlueprintContainer
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.
getMetadata
in interface BlueprintContainer
type
- The super type or type of the requested Component Metadata
objects.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |