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, wait
getDependencies
protected final String name
protected boolean prototype
protected AbstractRecipe(String name)
public String getName()
Recipe
public boolean isPrototype()
public void setPrototype(boolean prototype)
public final Object create() throws ComponentDefinitionException
Recipe
create
in interface Recipe
ComponentDefinitionException
protected abstract Object internalCreate() throws ComponentDefinitionException
ComponentDefinitionException
protected void addPartialObject(Object obj)
protected Object convert(Object obj, ReifiedType type) throws Exception
Exception
protected ReifiedType loadType(String typeName)
protected ReifiedType loadType(String typeName, ClassLoader fromClassLoader)
public void destroy(Object instance)
Recipe
public List<Recipe> getConstructorDependencies()
Recipe
getConstructorDependencies
in interface Recipe
Copyright © 2016. All rights reserved.