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, toString
public 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()
Recipe
getConstructorDependencies
in interface Recipe
getConstructorDependencies
in class AbstractRecipe
public List<Recipe> getDependencies()
Recipe
protected Object internalCreate() throws org.osgi.service.blueprint.container.ComponentDefinitionException
internalCreate
in class AbstractRecipe
org.osgi.service.blueprint.container.ComponentDefinitionException
public 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 © 2019. All rights reserved.