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,
Collection<URI> namespaces) |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
AccessControlContext |
getAccessControlContext() |
org.osgi.framework.Bundle |
getBundle() |
org.osgi.framework.BundleContext |
getBundleContext() |
ClassLoader |
getClassLoader() |
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 |
processProcessors() |
protected void |
processTypeConverters() |
protected void |
quiesce() |
org.osgi.framework.ServiceRegistration |
registerService(String[] classes,
Object service,
Dictionary properties) |
void |
reload() |
protected void |
resetComponentDefinitionRegistry() |
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, Collection<URI> namespaces)
public ExecutorService getExecutors()
getExecutors
in interface ExtendedBlueprintContainer
public org.osgi.framework.Bundle getExtenderBundle()
getExtenderBundle
in interface ExtendedBlueprintContainer
public org.apache.aries.proxy.ProxyManager getProxyManager()
getProxyManager
in interface ExtendedBlueprintContainer
public <T extends org.apache.aries.blueprint.Processor> List<T> getProcessors(Class<T> clazz)
getProcessors
in interface ExtendedBlueprintContainer
public org.osgi.service.blueprint.container.BlueprintListener getEventDispatcher()
getEventDispatcher
in interface ExtendedBlueprintContainer
public void schedule()
public void reload()
reload
in interface ExtendedBlueprintContainer
protected void resetComponentDefinitionRegistry()
public BlueprintContainerImpl.State getState()
public Class loadClass(String name) throws ClassNotFoundException
loadClass
in interface ExtendedBlueprintContainer
ClassNotFoundException
public ClassLoader getClassLoader()
getClassLoader
in interface ExtendedBlueprintContainer
public org.osgi.framework.ServiceRegistration registerService(String[] classes, Object service, Dictionary properties)
registerService
in interface ExtendedBlueprintContainer
public Object getService(org.osgi.framework.ServiceReference reference)
getService
in interface ExtendedBlueprintContainer
public AccessControlContext getAccessControlContext()
getAccessControlContext
in interface ExtendedBlueprintContainer
public BlueprintRepository getRepository()
public void notifySatisfaction(SatisfiableRecipe satisfiable)
notifySatisfaction
in interface SatisfiableRecipe.SatisfactionListener
protected void unregisterServices()
public Set<String> getComponentIds()
getComponentIds
in interface org.osgi.service.blueprint.container.BlueprintContainer
public Object getComponentInstance(String id) throws org.osgi.service.blueprint.container.NoSuchComponentException
getComponentInstance
in interface org.osgi.service.blueprint.container.BlueprintContainer
org.osgi.service.blueprint.container.NoSuchComponentException
public org.osgi.service.blueprint.reflect.ComponentMetadata getComponentMetadata(String id)
getComponentMetadata
in interface org.osgi.service.blueprint.container.BlueprintContainer
public <T extends org.osgi.service.blueprint.reflect.ComponentMetadata> Collection<T> getMetadata(Class<T> clazz)
getMetadata
in interface org.osgi.service.blueprint.container.BlueprintContainer
public org.osgi.service.blueprint.container.Converter getConverter()
getConverter
in interface ExtendedBlueprintContainer
public org.apache.aries.blueprint.parser.ComponentDefinitionRegistryImpl getComponentDefinitionRegistry()
getComponentDefinitionRegistry
in interface ExtendedBlueprintContainer
public org.osgi.framework.BundleContext getBundleContext()
getBundleContext
in interface ExtendedBlueprintContainer
public 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.Listener
public void namespaceHandlerUnregistered(URI uri)
namespaceHandlerUnregistered
in interface org.apache.aries.blueprint.parser.NamespaceHandlerSet.Listener
public void injectBeanInstance(org.osgi.service.blueprint.reflect.BeanMetadata bmd, Object o) throws IllegalArgumentException, org.osgi.service.blueprint.container.ComponentDefinitionException
ExtendedBlueprintContainer
injectBeanInstance
in interface ExtendedBlueprintContainer
IllegalArgumentException
org.osgi.service.blueprint.container.ComponentDefinitionException
Copyright © 2019. All rights reserved.