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 Object |
convert(Object obj,
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 ReifiedType |
loadType(String typeName) |
protected 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 ComponentDefinitionException
Recipecreate in interface RecipeComponentDefinitionExceptionprotected abstract Object internalCreate() throws ComponentDefinitionException
ComponentDefinitionExceptionprotected void addPartialObject(Object obj)
protected Object convert(Object obj, ReifiedType type) throws Exception
Exceptionprotected ReifiedType loadType(String typeName)
protected ReifiedType loadType(String typeName, ClassLoader fromClassLoader)
public void destroy(Object instance)
Recipepublic List<Recipe> getConstructorDependencies()
RecipegetConstructorDependencies in interface RecipeCopyright © 2012. All Rights Reserved.