|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.aries.blueprint.container.BlueprintContainerImpl
public class BlueprintContainerImpl
TODO: javadoc
Constructor Summary | |
---|---|
BlueprintContainerImpl(org.osgi.framework.BundleContext bundleContext,
org.osgi.framework.Bundle extenderBundle,
BlueprintListener eventDispatcher,
NamespaceHandlerRegistry handlers,
java.util.concurrent.ScheduledExecutorService executors,
java.util.List<java.lang.Object> pathList)
|
Method Summary | ||
---|---|---|
void |
destroy()
|
|
java.security.AccessControlContext |
getAccessControlContext()
|
|
org.osgi.framework.BundleContext |
getBundleContext()
|
|
ComponentDefinitionRegistryImpl |
getComponentDefinitionRegistry()
|
|
java.util.Set<java.lang.String> |
getComponentIds()
Returns the set of component ids managed by this Blueprint Container. |
|
java.lang.Object |
getComponentInstance(java.lang.String id)
Return the component instance for the specified component id. |
|
ComponentMetadata |
getComponentMetadata(java.lang.String id)
Return the Component Metadata object for the component with the specified component id. |
|
Converter |
getConverter()
|
|
BlueprintListener |
getEventDispatcher()
|
|
org.osgi.framework.Bundle |
getExtenderBundle()
|
|
|
getMetadata(java.lang.Class<T> clazz)
Return all ComponentMetadata objects of the specified Component
Metadata type. |
|
|
getProcessors(java.lang.Class<T> clazz)
|
|
BlueprintRepository |
getRepository()
|
|
java.lang.Object |
getService(org.osgi.framework.ServiceReference reference)
|
|
java.lang.Class |
loadClass(java.lang.String name)
|
|
void |
namespaceHandlerRegistered(java.net.URI uri)
Called when a NamespaceHandler has been registered for the specified URI. |
|
void |
namespaceHandlerUnregistered(java.net.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(java.lang.String[] classes,
java.lang.Object service,
java.util.Dictionary properties)
|
|
void |
reload()
|
|
void |
run()
|
|
void |
schedule()
|
|
protected void |
unregisterServices()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BlueprintContainerImpl(org.osgi.framework.BundleContext bundleContext, org.osgi.framework.Bundle extenderBundle, BlueprintListener eventDispatcher, NamespaceHandlerRegistry handlers, java.util.concurrent.ScheduledExecutorService executors, java.util.List<java.lang.Object> pathList)
Method Detail |
---|
public org.osgi.framework.Bundle getExtenderBundle()
getExtenderBundle
in interface ExtendedBlueprintContainer
public <T extends Processor> java.util.List<T> getProcessors(java.lang.Class<T> clazz)
getProcessors
in interface ExtendedBlueprintContainer
public BlueprintListener getEventDispatcher()
getEventDispatcher
in interface ExtendedBlueprintContainer
public void schedule()
public void reload()
reload
in interface ExtendedBlueprintContainer
public void run()
run
in interface java.lang.Runnable
public java.lang.Class loadClass(java.lang.String name) throws java.lang.ClassNotFoundException
loadClass
in interface ExtendedBlueprintContainer
java.lang.ClassNotFoundException
public org.osgi.framework.ServiceRegistration registerService(java.lang.String[] classes, java.lang.Object service, java.util.Dictionary properties)
registerService
in interface ExtendedBlueprintContainer
public java.lang.Object getService(org.osgi.framework.ServiceReference reference)
getService
in interface ExtendedBlueprintContainer
public java.security.AccessControlContext getAccessControlContext()
getAccessControlContext
in interface ExtendedBlueprintContainer
public BlueprintRepository getRepository()
getRepository
in interface ExtendedBlueprintContainer
public void notifySatisfaction(SatisfiableRecipe satisfiable)
notifySatisfaction
in interface SatisfiableRecipe.SatisfactionListener
protected void unregisterServices()
public java.util.Set<java.lang.String> getComponentIds()
BlueprintContainer
getComponentIds
in interface BlueprintContainer
public java.lang.Object getComponentInstance(java.lang.String id) throws NoSuchComponentException
BlueprintContainer
getComponentInstance
in interface BlueprintContainer
id
- 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(java.lang.String id)
BlueprintContainer
getComponentMetadata
in interface BlueprintContainer
id
- The component id for the requested Component Metadata.
public <T extends ComponentMetadata> java.util.Collection<T> getMetadata(java.lang.Class<T> clazz)
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
clazz
- The super type or type of the requested Component Metadata
objects.
public Converter getConverter()
getConverter
in interface ExtendedBlueprintContainer
public ComponentDefinitionRegistryImpl getComponentDefinitionRegistry()
getComponentDefinitionRegistry
in interface ExtendedBlueprintContainer
public org.osgi.framework.BundleContext getBundleContext()
getBundleContext
in interface ExtendedBlueprintContainer
public void destroy()
protected void quiesce()
public void namespaceHandlerRegistered(java.net.URI uri)
NamespaceHandlerRegistry.Listener
namespaceHandlerRegistered
in interface NamespaceHandlerRegistry.Listener
uri
- the URI of the newly registered namespace handlerpublic void namespaceHandlerUnregistered(java.net.URI uri)
NamespaceHandlerRegistry.Listener
namespaceHandlerUnregistered
in interface NamespaceHandlerRegistry.Listener
uri
- the URI of the newly unregistered namespace handler
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |