public class SpringBlueprintContainer extends Object implements BlueprintContainer
BlueprintContainer implementation. Wraps Spring's ConfigurableListableBeanFactory in 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 concerns are left to the Blueprint extender.| Constructor and Description |
|---|
SpringBlueprintContainer(org.springframework.context.ConfigurableApplicationContext applicationContext) |
| Modifier and Type | Method and Description |
|---|---|
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. |
public SpringBlueprintContainer(org.springframework.context.ConfigurableApplicationContext applicationContext)
public Object getComponentInstance(String name) throws NoSuchComponentException
BlueprintContainergetComponentInstance in interface BlueprintContainername - 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
BlueprintContainergetComponentMetadata in interface BlueprintContainername - 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()
BlueprintContainergetComponentIds in interface BlueprintContainerpublic Collection<?> getMetadata(Class type)
BlueprintContainerComponentMetadata 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 BlueprintContainertype - The super type or type of the requested Component Metadata
objects.Copyright © 2006-2013. All Rights Reserved.