org.apache.aries.blueprint.container
Class ReferenceListRecipe

java.lang.Object
  extended by org.apache.aries.blueprint.di.AbstractRecipe
      extended by org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe
          extended by org.apache.aries.blueprint.container.ReferenceListRecipe
All Implemented Interfaces:
java.util.EventListener, SatisfiableRecipe, Recipe, org.osgi.framework.ServiceListener

public class ReferenceListRecipe
extends AbstractServiceReferenceRecipe

A recipe to create a managed collection of service references

Version:
$Rev: 1030761 $, $Date: 2010-11-03 23:48:47 +0000 (Wed, 03 Nov 2010) $

Nested Class Summary
static class ReferenceListRecipe.ManagedCollection
          Base class for managed collections.
 class ReferenceListRecipe.ProvidedObject
           
 class ReferenceListRecipe.ServiceDispatcher
          The ServiceDispatcher is used when creating the cglib proxy.
 
Nested classes/interfaces inherited from class org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe
AbstractServiceReferenceRecipe.Listener
 
Nested classes/interfaces inherited from interface org.apache.aries.blueprint.container.SatisfiableRecipe
SatisfiableRecipe.SatisfactionListener
 
Field Summary
 
Fields inherited from class org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe
blueprintContainer, explicitDependencies, filter, listeners, listenersRecipe, optional
 
Fields inherited from class org.apache.aries.blueprint.di.AbstractRecipe
name, prototype
 
Constructor Summary
ReferenceListRecipe(java.lang.String name, ExtendedBlueprintContainer blueprintContainer, ReferenceListMetadata metadata, CollectionRecipe listenersRecipe, java.util.List<Recipe> explicitDependencies)
           
 
Method Summary
protected  ReferenceListRecipe.ServiceDispatcher findDispatcher(org.osgi.framework.ServiceReference reference)
           
protected  ReferenceListRecipe.ManagedCollection getManagedCollection(boolean useReferences)
           
protected  java.lang.Object internalCreate()
           
protected  void retrack()
           
protected  void track(org.osgi.framework.ServiceReference reference)
           
protected  void untrack(org.osgi.framework.ServiceReference reference)
           
 
Methods inherited from class org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe
bind, createListeners, createProxy, doStop, getBestServiceReference, getConstructorDependencies, getDependencies, getInterfaceClass, getListenersRecipe, getOsgiFilter, getRuntimeClass, getServiceReferences, isSatisfied, isStarted, loadAllClasses, loadType, serviceChanged, setSatisfied, start, stop, unbind, updateListeners
 
Methods inherited from class org.apache.aries.blueprint.di.AbstractRecipe
addPartialObject, convert, convert, create, destroy, getName, isPrototype, loadClass, loadType, setPrototype, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.aries.blueprint.di.Recipe
create, destroy, getName
 

Constructor Detail

ReferenceListRecipe

public ReferenceListRecipe(java.lang.String name,
                           ExtendedBlueprintContainer blueprintContainer,
                           ReferenceListMetadata metadata,
                           CollectionRecipe listenersRecipe,
                           java.util.List<Recipe> explicitDependencies)
Method Detail

internalCreate

protected java.lang.Object internalCreate()
                                   throws ComponentDefinitionException
Specified by:
internalCreate in class AbstractRecipe
Throws:
ComponentDefinitionException

retrack

protected void retrack()
Specified by:
retrack in class AbstractServiceReferenceRecipe

track

protected void track(org.osgi.framework.ServiceReference reference)
Specified by:
track in class AbstractServiceReferenceRecipe

untrack

protected void untrack(org.osgi.framework.ServiceReference reference)
Specified by:
untrack in class AbstractServiceReferenceRecipe

findDispatcher

protected ReferenceListRecipe.ServiceDispatcher findDispatcher(org.osgi.framework.ServiceReference reference)

getManagedCollection

protected ReferenceListRecipe.ManagedCollection getManagedCollection(boolean useReferences)


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