public class BlueprintContainerImpl extends Object implements ExtendedBlueprintContainer, NamespaceHandlerRegistry.Listener, Runnable, SatisfiableRecipe.SatisfactionListener
| Constructor and Description |
|---|
BlueprintContainerImpl(org.osgi.framework.BundleContext bundleContext,
org.osgi.framework.Bundle extenderBundle,
BlueprintListener eventDispatcher,
NamespaceHandlerRegistry handlers,
ScheduledExecutorService executors,
List<Object> pathList) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
AccessControlContext |
getAccessControlContext() |
org.osgi.framework.BundleContext |
getBundleContext() |
ComponentDefinitionRegistryImpl |
getComponentDefinitionRegistry() |
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.
|
Converter |
getConverter() |
BlueprintListener |
getEventDispatcher() |
org.osgi.framework.Bundle |
getExtenderBundle() |
<T extends ComponentMetadata> |
getMetadata(Class<T> clazz)
Return all
ComponentMetadata objects of the specified Component
Metadata type. |
<T extends Processor> |
getProcessors(Class<T> clazz) |
BlueprintRepository |
getRepository() |
Object |
getService(org.osgi.framework.ServiceReference reference) |
Class |
loadClass(String name) |
void |
namespaceHandlerRegistered(URI uri)
Called when a NamespaceHandler has been registered for the specified URI.
|
void |
namespaceHandlerUnregistered(URI uri)
Called when a NamespaceHandler has been unregistered for the specified URI.
|
void |
notifySatisfaction(SatisfiableRecipe satisfiable) |
protected void |
quiesce() |
org.osgi.framework.ServiceRegistration |
registerService(String[] classes,
Object service,
Dictionary properties) |
void |
reload() |
void |
run() |
void |
schedule() |
protected void |
unregisterServices() |
public BlueprintContainerImpl(org.osgi.framework.BundleContext bundleContext,
org.osgi.framework.Bundle extenderBundle,
BlueprintListener eventDispatcher,
NamespaceHandlerRegistry handlers,
ScheduledExecutorService executors,
List<Object> pathList)
public org.osgi.framework.Bundle getExtenderBundle()
getExtenderBundle in interface ExtendedBlueprintContainerpublic <T extends Processor> List<T> getProcessors(Class<T> clazz)
getProcessors in interface ExtendedBlueprintContainerpublic BlueprintListener getEventDispatcher()
getEventDispatcher in interface ExtendedBlueprintContainerpublic void schedule()
public void reload()
reload in interface ExtendedBlueprintContainerpublic Class loadClass(String name) throws ClassNotFoundException
loadClass in interface ExtendedBlueprintContainerClassNotFoundExceptionpublic org.osgi.framework.ServiceRegistration registerService(String[] classes, Object service, Dictionary properties)
registerService in interface ExtendedBlueprintContainerpublic Object getService(org.osgi.framework.ServiceReference reference)
getService in interface ExtendedBlueprintContainerpublic AccessControlContext getAccessControlContext()
getAccessControlContext in interface ExtendedBlueprintContainerpublic BlueprintRepository getRepository()
getRepository in interface ExtendedBlueprintContainerpublic void notifySatisfaction(SatisfiableRecipe satisfiable)
notifySatisfaction in interface SatisfiableRecipe.SatisfactionListenerprotected void unregisterServices()
public Set<String> getComponentIds()
BlueprintContainergetComponentIds in interface BlueprintContainerpublic Object getComponentInstance(String id) throws NoSuchComponentException
BlueprintContainergetComponentInstance in interface BlueprintContainerid - 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 id)
BlueprintContainergetComponentMetadata in interface BlueprintContainerid - The component id for the requested Component Metadata.public <T extends ComponentMetadata> Collection<T> getMetadata(Class<T> clazz)
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 BlueprintContainerclazz - The super type or type of the requested Component Metadata
objects.public Converter getConverter()
getConverter in interface ExtendedBlueprintContainerpublic ComponentDefinitionRegistryImpl getComponentDefinitionRegistry()
getComponentDefinitionRegistry in interface ExtendedBlueprintContainerpublic org.osgi.framework.BundleContext getBundleContext()
getBundleContext in interface ExtendedBlueprintContainerpublic void destroy()
protected void quiesce()
public void namespaceHandlerRegistered(URI uri)
NamespaceHandlerRegistry.ListenernamespaceHandlerRegistered in interface NamespaceHandlerRegistry.Listeneruri - the URI of the newly registered namespace handlerpublic void namespaceHandlerUnregistered(URI uri)
NamespaceHandlerRegistry.ListenernamespaceHandlerUnregistered in interface NamespaceHandlerRegistry.Listeneruri - the URI of the newly unregistered namespace handlerCopyright © 2012. All Rights Reserved.