|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.geronimo.blueprint.di.AbstractRecipe
org.apache.geronimo.blueprint.container.BeanRecipe
public class BeanRecipe
A Recipe to create POJOs.
| Field Summary |
|---|
| Fields inherited from class org.apache.geronimo.blueprint.di.AbstractRecipe |
|---|
name, prototype |
| Constructor Summary | |
|---|---|
BeanRecipe(String name,
ExtendedBlueprintContainer blueprintContainer,
Object type)
|
|
| Method Summary | |
|---|---|
void |
destroy(Object instance)
Destroy an instance created by this recipe |
void |
destroyInstance(Object obj)
|
List<Recipe> |
getConstructorDependencies()
Get the list of constructor dependencies, i.e. |
List<Recipe> |
getDependencies()
Get the list of nested recipes, i.e. |
String |
getDestroyMethod()
|
Method |
getDestroyMethod(Object instance)
Returns destroy method (if any). |
List<Recipe> |
getExplicitDependencies()
|
String |
getInitMethod()
|
protected Method |
getInitMethod(Object instance)
Returns init method (if any). |
Map<String,Object> |
getProperties()
|
Object |
getProperty(String name)
|
Class |
getType()
|
protected Object |
internalCreate()
|
protected Class |
loadClass(String className)
|
protected ReifiedType |
loadType(String className)
|
void |
setArgTypes(List<String> argTypes)
|
void |
setArguments(List<Object> arguments)
|
void |
setDestroyMethod(String destroyMethod)
|
void |
setExplicitDependencies(List<Recipe> explicitDependencies)
|
void |
setFactoryComponent(Recipe factory)
|
void |
setFactoryMethod(String method)
|
void |
setInitMethod(String initMethod)
|
void |
setProperties(Object instance)
|
void |
setProperty(String name,
Object value)
|
void |
setReorderArguments(boolean reorder)
|
| Methods inherited from class org.apache.geronimo.blueprint.di.AbstractRecipe |
|---|
addPartialObject, convert, convert, create, getName, isPrototype, loadType, setPrototype, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BeanRecipe(String name,
ExtendedBlueprintContainer blueprintContainer,
Object type)
| Method Detail |
|---|
public Object getProperty(String name)
public Map<String,Object> getProperties()
public void setProperty(String name,
Object value)
public void setFactoryMethod(String method)
public void setFactoryComponent(Recipe factory)
public void setArgTypes(List<String> argTypes)
public void setArguments(List<Object> arguments)
public void setReorderArguments(boolean reorder)
public void setInitMethod(String initMethod)
public String getInitMethod()
public void setDestroyMethod(String destroyMethod)
public String getDestroyMethod()
public List<Recipe> getExplicitDependencies()
public void setExplicitDependencies(List<Recipe> explicitDependencies)
public List<Recipe> getConstructorDependencies()
Recipe
getConstructorDependencies in interface RecipegetConstructorDependencies in class AbstractRecipepublic List<Recipe> getDependencies()
Recipe
protected Class loadClass(String className)
loadClass in class AbstractRecipeprotected ReifiedType loadType(String className)
loadType in class AbstractRecipe
protected Method getInitMethod(Object instance)
throws ComponentDefinitionException
ComponentDefinitionException
public Method getDestroyMethod(Object instance)
throws ComponentDefinitionException
ComponentDefinitionException
protected Object internalCreate()
throws ComponentDefinitionException
internalCreate in class AbstractRecipeComponentDefinitionExceptionpublic void destroyInstance(Object obj)
public void destroy(Object instance)
Recipe
destroy in interface Recipedestroy in class AbstractRecipeinstance - the instance to be destroyed
public void setProperties(Object instance)
throws ComponentDefinitionException
ComponentDefinitionExceptionpublic Class getType()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||