|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.geronimo.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,
ScheduledExecutorService executors,
List<Object> pathList)
|
|
| Method Summary | ||
|---|---|---|
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()
|
|
|
getMetadata(Class<T> clazz)
Return all ComponentMetadata objects of the specified Component
Metadata type. |
|
|
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)
|
|
org.osgi.framework.ServiceRegistration |
registerService(String[] classes,
Object service,
Dictionary properties)
|
|
void |
run()
|
|
void |
schedule()
|
|
| 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,
ScheduledExecutorService executors,
List<Object> pathList)
| Method Detail |
|---|
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 run()
run in interface Runnable
public Class loadClass(String name)
throws ClassNotFoundException
loadClass in interface ExtendedBlueprintContainerClassNotFoundException
public 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.SatisfactionListenerpublic Set<String> getComponentIds()
BlueprintContainer
getComponentIds in interface BlueprintContainer
public Object getComponentInstance(String id)
throws NoSuchComponentException
BlueprintContainer
getComponentInstance 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)
BlueprintContainer
getComponentMetadata 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()
public void namespaceHandlerRegistered(URI uri)
NamespaceHandlerRegistry.Listener
namespaceHandlerRegistered in interface NamespaceHandlerRegistry.Listeneruri - the URI of the newly registered namespace handlerpublic void namespaceHandlerUnregistered(URI uri)
NamespaceHandlerRegistry.Listener
namespaceHandlerUnregistered in interface NamespaceHandlerRegistry.Listeneruri - the URI of the newly unregistered namespace handler
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||