public abstract class AbstractRecipe extends Object implements Recipe
| Modifier and Type | Field and Description |
|---|---|
protected String |
name |
protected boolean |
prototype |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractRecipe(String name) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addPartialObject(Object obj) |
protected boolean |
canConvert(Object obj,
org.osgi.service.blueprint.container.ReifiedType type) |
protected Object |
convert(Object obj,
org.osgi.service.blueprint.container.ReifiedType type) |
protected Object |
convert(Object obj,
Type type) |
Object |
create()
Create an instance for this recipe.
|
void |
destroy(Object instance)
Destroy an instance created by this recipe
|
List<Recipe> |
getConstructorDependencies()
Get the list of constructor dependencies, i.e.
|
String |
getName()
Get the unique name for this recipe.
|
protected abstract Object |
internalCreate() |
boolean |
isPrototype() |
protected Class |
loadClass(String className) |
protected org.osgi.service.blueprint.container.ReifiedType |
loadType(String typeName) |
protected org.osgi.service.blueprint.container.ReifiedType |
loadType(String typeName,
ClassLoader fromClassLoader) |
void |
setPrototype(boolean prototype) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDependenciesprotected final String name
protected boolean prototype
protected AbstractRecipe(String name)
public String getName()
Recipepublic boolean isPrototype()
public void setPrototype(boolean prototype)
public final Object create() throws org.osgi.service.blueprint.container.ComponentDefinitionException
Recipeprotected abstract Object internalCreate() throws org.osgi.service.blueprint.container.ComponentDefinitionException
org.osgi.service.blueprint.container.ComponentDefinitionExceptionprotected void addPartialObject(Object obj)
protected boolean canConvert(Object obj, org.osgi.service.blueprint.container.ReifiedType type)
protected Object convert(Object obj, org.osgi.service.blueprint.container.ReifiedType type) throws Exception
Exceptionprotected org.osgi.service.blueprint.container.ReifiedType loadType(String typeName)
protected org.osgi.service.blueprint.container.ReifiedType loadType(String typeName, ClassLoader fromClassLoader)
public void destroy(Object instance)
Recipepublic List<Recipe> getConstructorDependencies()
RecipegetConstructorDependencies in interface RecipeCopyright © 2009-2015 The Apache Software Foundation. All Rights Reserved.