org.apache.aries.blueprint.container
Class BlueprintContainerImpl

java.lang.Object
  extended by org.apache.aries.blueprint.container.BlueprintContainerImpl
All Implemented Interfaces:
Runnable, SatisfiableRecipe.SatisfactionListener, org.apache.aries.blueprint.parser.NamespaceHandlerSet.Listener, ExtendedBlueprintContainer, org.osgi.service.blueprint.container.BlueprintContainer

public class BlueprintContainerImpl
extends Object
implements ExtendedBlueprintContainer, org.apache.aries.blueprint.parser.NamespaceHandlerSet.Listener, Runnable, SatisfiableRecipe.SatisfactionListener

TODO: javadoc

Version:
$Rev: 1154405 $, $Date: 2011-08-05 23:40:03 +0100 (Fri, 05 Aug 2011) $

Constructor Summary
BlueprintContainerImpl(org.osgi.framework.BundleContext bundleContext, org.osgi.framework.Bundle extenderBundle, org.osgi.service.blueprint.container.BlueprintListener eventDispatcher, NamespaceHandlerRegistry handlers, ScheduledExecutorService executors, List<Object> pathList)
           
 
Method Summary
 void destroy()
           
 AccessControlContext getAccessControlContext()
           
 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()
           
 org.osgi.framework.Bundle getExtenderBundle()
           
<T extends org.osgi.service.blueprint.reflect.ComponentMetadata>
Collection<T>
getMetadata(Class<T> clazz)
           
<T extends org.apache.aries.blueprint.Processor>
List<T>
getProcessors(Class<T> clazz)
           
 BlueprintRepository getRepository()
           
 Object getService(org.osgi.framework.ServiceReference reference)
           
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlueprintContainerImpl

public BlueprintContainerImpl(org.osgi.framework.BundleContext bundleContext,
                              org.osgi.framework.Bundle extenderBundle,
                              org.osgi.service.blueprint.container.BlueprintListener eventDispatcher,
                              NamespaceHandlerRegistry handlers,
                              ScheduledExecutorService executors,
                              List<Object> pathList)
Method Detail

getExtenderBundle

public org.osgi.framework.Bundle getExtenderBundle()
Specified by:
getExtenderBundle in interface ExtendedBlueprintContainer

getProcessors

public <T extends org.apache.aries.blueprint.Processor> List<T> getProcessors(Class<T> clazz)
Specified by:
getProcessors in interface ExtendedBlueprintContainer

getEventDispatcher

public org.osgi.service.blueprint.container.BlueprintListener getEventDispatcher()
Specified by:
getEventDispatcher in interface ExtendedBlueprintContainer

schedule

public void schedule()

reload

public void reload()
Specified by:
reload in interface ExtendedBlueprintContainer

run

public void run()
Specified by:
run in interface Runnable

loadClass

public Class loadClass(String name)
                throws ClassNotFoundException
Specified by:
loadClass in interface ExtendedBlueprintContainer
Throws:
ClassNotFoundException

registerService

public org.osgi.framework.ServiceRegistration registerService(String[] classes,
                                                              Object service,
                                                              Dictionary properties)
Specified by:
registerService in interface ExtendedBlueprintContainer

getService

public Object getService(org.osgi.framework.ServiceReference reference)
Specified by:
getService in interface ExtendedBlueprintContainer

getAccessControlContext

public AccessControlContext getAccessControlContext()
Specified by:
getAccessControlContext in interface ExtendedBlueprintContainer

getRepository

public BlueprintRepository getRepository()
Specified by:
getRepository in interface ExtendedBlueprintContainer

notifySatisfaction

public void notifySatisfaction(SatisfiableRecipe satisfiable)
Specified by:
notifySatisfaction in interface SatisfiableRecipe.SatisfactionListener

unregisterServices

protected void unregisterServices()

getComponentIds

public Set<String> getComponentIds()
Specified by:
getComponentIds in interface org.osgi.service.blueprint.container.BlueprintContainer

getComponentInstance

public Object getComponentInstance(String id)
                            throws org.osgi.service.blueprint.container.NoSuchComponentException
Specified by:
getComponentInstance in interface org.osgi.service.blueprint.container.BlueprintContainer
Throws:
org.osgi.service.blueprint.container.NoSuchComponentException

getComponentMetadata

public org.osgi.service.blueprint.reflect.ComponentMetadata getComponentMetadata(String id)
Specified by:
getComponentMetadata in interface org.osgi.service.blueprint.container.BlueprintContainer

getMetadata

public <T extends org.osgi.service.blueprint.reflect.ComponentMetadata> Collection<T> getMetadata(Class<T> clazz)
Specified by:
getMetadata in interface org.osgi.service.blueprint.container.BlueprintContainer

getConverter

public org.osgi.service.blueprint.container.Converter getConverter()
Specified by:
getConverter in interface ExtendedBlueprintContainer

getComponentDefinitionRegistry

public org.apache.aries.blueprint.parser.ComponentDefinitionRegistryImpl getComponentDefinitionRegistry()
Specified by:
getComponentDefinitionRegistry in interface ExtendedBlueprintContainer

getBundleContext

public org.osgi.framework.BundleContext getBundleContext()
Specified by:
getBundleContext in interface ExtendedBlueprintContainer

destroy

public void destroy()

quiesce

protected void quiesce()

namespaceHandlerRegistered

public void namespaceHandlerRegistered(URI uri)
Specified by:
namespaceHandlerRegistered in interface org.apache.aries.blueprint.parser.NamespaceHandlerSet.Listener

namespaceHandlerUnregistered

public void namespaceHandlerUnregistered(URI uri)
Specified by:
namespaceHandlerUnregistered in interface org.apache.aries.blueprint.parser.NamespaceHandlerSet.Listener


Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.