public class BlueprintContainerImpl extends Object implements ExtendedBlueprintContainer, org.apache.aries.blueprint.parser.NamespaceHandlerSet.Listener, Runnable, SatisfiableRecipe.SatisfactionListener, ExtendedBlueprintContainer
| Modifier and Type | Class and Description |
|---|---|
static class |
BlueprintContainerImpl.State |
| Constructor and Description |
|---|
BlueprintContainerImpl(org.osgi.framework.Bundle bundle,
org.osgi.framework.BundleContext bundleContext,
org.osgi.framework.Bundle extenderBundle,
org.osgi.service.blueprint.container.BlueprintListener eventDispatcher,
NamespaceHandlerRegistry handlers,
ExecutorService executor,
ScheduledExecutorService timer,
List<Object> pathList,
org.apache.aries.proxy.ProxyManager proxyManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
AccessControlContext |
getAccessControlContext() |
org.osgi.framework.Bundle |
getBundle() |
org.osgi.framework.BundleContext |
getBundleContext() |
org.apache.aries.blueprint.parser.ComponentDefinitionRegistryImpl |
getComponentDefinitionRegistry() |
Set<String> |
getComponentIds() |
Object |
getComponentInstance(String id) |
org.osgi.service.blueprint.reflect.ComponentMetadata |
getComponentMetadata(String id) |
org.osgi.service.blueprint.container.Converter |
getConverter() |
org.osgi.service.blueprint.container.BlueprintListener |
getEventDispatcher() |
ExecutorService |
getExecutors() |
org.osgi.framework.Bundle |
getExtenderBundle() |
<T extends org.osgi.service.blueprint.reflect.ComponentMetadata> |
getMetadata(Class<T> clazz) |
<T extends org.apache.aries.blueprint.Processor> |
getProcessors(Class<T> clazz) |
org.apache.aries.proxy.ProxyManager |
getProxyManager() |
BlueprintRepository |
getRepository() |
Object |
getService(org.osgi.framework.ServiceReference reference) |
BlueprintContainerImpl.State |
getState() |
void |
injectBeanInstance(org.osgi.service.blueprint.reflect.BeanMetadata bmd,
Object o)
Inject (or reinject) an Object instance with the blueprint properties defined by a BeanMetadata
Throws IllegalArgumentException if the bean metadata does not exist in this blueprint container
Throws ComponentDefinitionException if the injection process fails - this may have rendered the supplied Object unusable by partially completing the injection process
|
Class |
loadClass(String name) |
void |
namespaceHandlerRegistered(URI uri) |
void |
namespaceHandlerUnregistered(URI 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.Bundle bundle,
org.osgi.framework.BundleContext bundleContext,
org.osgi.framework.Bundle extenderBundle,
org.osgi.service.blueprint.container.BlueprintListener eventDispatcher,
NamespaceHandlerRegistry handlers,
ExecutorService executor,
ScheduledExecutorService timer,
List<Object> pathList,
org.apache.aries.proxy.ProxyManager proxyManager)
public ExecutorService getExecutors()
getExecutors in interface ExtendedBlueprintContainerpublic org.osgi.framework.Bundle getExtenderBundle()
getExtenderBundle in interface ExtendedBlueprintContainerpublic org.apache.aries.proxy.ProxyManager getProxyManager()
getProxyManager in interface ExtendedBlueprintContainerpublic <T extends org.apache.aries.blueprint.Processor> List<T> getProcessors(Class<T> clazz)
getProcessors in interface ExtendedBlueprintContainerpublic org.osgi.service.blueprint.container.BlueprintListener getEventDispatcher()
getEventDispatcher in interface ExtendedBlueprintContainerpublic void schedule()
public void reload()
reload in interface ExtendedBlueprintContainerpublic BlueprintContainerImpl.State getState()
public 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()
public void notifySatisfaction(SatisfiableRecipe satisfiable)
notifySatisfaction in interface SatisfiableRecipe.SatisfactionListenerprotected void unregisterServices()
public Set<String> getComponentIds()
getComponentIds in interface org.osgi.service.blueprint.container.BlueprintContainerpublic Object getComponentInstance(String id) throws org.osgi.service.blueprint.container.NoSuchComponentException
getComponentInstance in interface org.osgi.service.blueprint.container.BlueprintContainerorg.osgi.service.blueprint.container.NoSuchComponentExceptionpublic org.osgi.service.blueprint.reflect.ComponentMetadata getComponentMetadata(String id)
getComponentMetadata in interface org.osgi.service.blueprint.container.BlueprintContainerpublic <T extends org.osgi.service.blueprint.reflect.ComponentMetadata> Collection<T> getMetadata(Class<T> clazz)
getMetadata in interface org.osgi.service.blueprint.container.BlueprintContainerpublic org.osgi.service.blueprint.container.Converter getConverter()
getConverter in interface ExtendedBlueprintContainerpublic org.apache.aries.blueprint.parser.ComponentDefinitionRegistryImpl getComponentDefinitionRegistry()
getComponentDefinitionRegistry in interface ExtendedBlueprintContainerpublic org.osgi.framework.BundleContext getBundleContext()
getBundleContext in interface ExtendedBlueprintContainerpublic org.osgi.framework.Bundle getBundle()
public void destroy()
protected void quiesce()
public void namespaceHandlerRegistered(URI uri)
namespaceHandlerRegistered in interface org.apache.aries.blueprint.parser.NamespaceHandlerSet.Listenerpublic void namespaceHandlerUnregistered(URI uri)
namespaceHandlerUnregistered in interface org.apache.aries.blueprint.parser.NamespaceHandlerSet.Listenerpublic void injectBeanInstance(org.osgi.service.blueprint.reflect.BeanMetadata bmd,
Object o)
throws IllegalArgumentException,
org.osgi.service.blueprint.container.ComponentDefinitionException
ExtendedBlueprintContainerinjectBeanInstance in interface ExtendedBlueprintContainerIllegalArgumentExceptionorg.osgi.service.blueprint.container.ComponentDefinitionExceptionCopyright © 2009-2015 The Apache Software Foundation. All Rights Reserved.