public class ServiceRecipe extends AbstractRecipe
Recipe to export services into the OSGi registry.name, prototype| Constructor and Description |
|---|
ServiceRecipe(String name,
BlueprintContainerImpl blueprintContainer,
org.osgi.service.blueprint.reflect.ServiceMetadata metadata,
Recipe serviceRecipe,
CollectionRecipe listenersRecipe,
MapRecipe propertiesRecipe,
List<Recipe> explicitDependencies) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
decrementActiveCalls() |
List<Recipe> |
getConstructorDependencies()
Get the list of constructor dependencies, i.e.
|
List<Recipe> |
getDependencies()
Get the list of nested recipes, i.e.
|
CollectionRecipe |
getListenersRecipe() |
protected org.osgi.framework.ServiceReference |
getReference() |
Object |
getService(org.osgi.framework.Bundle bundle,
org.osgi.framework.ServiceRegistration registration) |
Recipe |
getServiceRecipe() |
protected void |
incrementActiveCalls() |
protected Object |
internalCreate() |
protected Object |
internalGetService() |
boolean |
isRegistered() |
void |
quiesce(DestroyCallback destroyCallback) |
void |
register() |
protected void |
setProperties(Dictionary props) |
void |
ungetService(org.osgi.framework.Bundle bundle,
org.osgi.framework.ServiceRegistration registration,
Object service) |
void |
unregister() |
addPartialObject, canConvert, convert, convert, create, destroy, getName, isPrototype, loadClass, loadType, loadType, setPrototype, toStringpublic ServiceRecipe(String name, BlueprintContainerImpl blueprintContainer, org.osgi.service.blueprint.reflect.ServiceMetadata metadata, Recipe serviceRecipe, CollectionRecipe listenersRecipe, MapRecipe propertiesRecipe, List<Recipe> explicitDependencies)
public Recipe getServiceRecipe()
public CollectionRecipe getListenersRecipe()
public List<Recipe> getConstructorDependencies()
RecipegetConstructorDependencies in interface RecipegetConstructorDependencies in class AbstractRecipepublic List<Recipe> getDependencies()
Recipeprotected Object internalCreate() throws org.osgi.service.blueprint.container.ComponentDefinitionException
internalCreate in class AbstractRecipeorg.osgi.service.blueprint.container.ComponentDefinitionExceptionpublic boolean isRegistered()
public void register()
public void unregister()
protected org.osgi.framework.ServiceReference getReference()
protected void setProperties(Dictionary props)
protected Object internalGetService()
public Object getService(org.osgi.framework.Bundle bundle, org.osgi.framework.ServiceRegistration registration)
public void ungetService(org.osgi.framework.Bundle bundle,
org.osgi.framework.ServiceRegistration registration,
Object service)
protected void incrementActiveCalls()
protected void decrementActiveCalls()
public void quiesce(DestroyCallback destroyCallback)
Copyright © 2009-2015 The Apache Software Foundation. All Rights Reserved.