org.apache.aries.blueprint.container
Class ReferenceRecipe
java.lang.Object
org.apache.aries.blueprint.di.AbstractRecipe
org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe
org.apache.aries.blueprint.container.ReferenceRecipe
- All Implemented Interfaces:
- EventListener, SatisfiableRecipe, Recipe, org.osgi.framework.ServiceListener
public class ReferenceRecipe
- extends AbstractServiceReferenceRecipe
A recipe to create an unary OSGi service reference.
TODO: check synchronization / thread safety
TODO: looks there is a potential problem if the service is unregistered between a call
to ServiceDispatcher#loadObject() and when the actual invocation finish
- Version:
- $Rev: 1179099 $, $Date: 2011-10-05 09:26:48 +0100 (Wed, 05 Oct 2011) $
Methods inherited from class org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe |
bind, createListeners, createProxy, getBestServiceReference, getBundleContextForServiceLookup, 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 |
ReferenceRecipe
public ReferenceRecipe(String name,
ExtendedBlueprintContainer blueprintContainer,
org.osgi.service.blueprint.reflect.ReferenceMetadata metadata,
CollectionRecipe listenersRecipe,
List<Recipe> explicitDependencies)
internalCreate
protected Object internalCreate()
throws org.osgi.service.blueprint.container.ComponentDefinitionException
- Specified by:
internalCreate
in class AbstractRecipe
- Throws:
org.osgi.service.blueprint.container.ComponentDefinitionException
doStop
protected void doStop()
- Overrides:
doStop
in class AbstractServiceReferenceRecipe
retrack
protected void retrack()
- Specified by:
retrack
in class AbstractServiceReferenceRecipe
track
protected void track(org.osgi.framework.ServiceReference ref)
- Specified by:
track
in class AbstractServiceReferenceRecipe
untrack
protected void untrack(org.osgi.framework.ServiceReference ref)
- Specified by:
untrack
in class AbstractServiceReferenceRecipe
Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.