|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.aries.blueprint.di.AbstractRecipe
org.apache.aries.blueprint.container.BeanRecipe
public class BeanRecipe
A Recipe
to create POJOs.
Field Summary |
---|
Fields inherited from class org.apache.aries.blueprint.di.AbstractRecipe |
---|
name, prototype |
Constructor Summary | |
---|---|
BeanRecipe(java.lang.String name,
ExtendedBlueprintContainer blueprintContainer,
java.lang.Object type,
boolean allowsFieldInjection)
|
Method Summary | |
---|---|
void |
destroy(java.lang.Object obj)
Destroy an instance created by this recipe |
java.util.List<Recipe> |
getConstructorDependencies()
Get the list of constructor dependencies, i.e. |
java.util.List<Recipe> |
getDependencies()
Get the list of nested recipes, i.e. |
java.lang.String |
getDestroyMethod()
|
java.lang.reflect.Method |
getDestroyMethod(java.lang.Object instance)
Returns destroy method (if any). |
java.util.List<Recipe> |
getExplicitDependencies()
|
java.lang.String |
getInitMethod()
|
protected java.lang.reflect.Method |
getInitMethod(java.lang.Object instance)
Returns init method (if any). |
java.util.Map<java.lang.String,java.lang.Object> |
getProperties()
|
java.lang.Object |
getProperty(java.lang.String name)
|
java.lang.Class |
getType()
|
protected java.lang.Object |
internalCreate()
|
protected java.lang.Class |
loadClass(java.lang.String className)
|
protected ReifiedType |
loadType(java.lang.String className)
|
void |
setArgTypes(java.util.List<java.lang.String> argTypes)
|
void |
setArguments(java.util.List<java.lang.Object> arguments)
|
void |
setDestroyMethod(java.lang.String destroyMethod)
|
void |
setExplicitDependencies(java.util.List<Recipe> explicitDependencies)
|
void |
setFactoryComponent(Recipe factory)
|
void |
setFactoryMethod(java.lang.String method)
|
void |
setInitMethod(java.lang.String initMethod)
|
void |
setInterceptorLookupKey(BeanMetadata metadata)
|
void |
setProperties(java.lang.Object instance)
|
void |
setProperty(java.lang.String name,
java.lang.Object value)
|
void |
setReorderArguments(boolean reorder)
|
Methods inherited from class org.apache.aries.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(java.lang.String name, ExtendedBlueprintContainer blueprintContainer, java.lang.Object type, boolean allowsFieldInjection)
Method Detail |
---|
public java.lang.Object getProperty(java.lang.String name)
public java.util.Map<java.lang.String,java.lang.Object> getProperties()
public void setProperty(java.lang.String name, java.lang.Object value)
public void setFactoryMethod(java.lang.String method)
public void setFactoryComponent(Recipe factory)
public void setArgTypes(java.util.List<java.lang.String> argTypes)
public void setArguments(java.util.List<java.lang.Object> arguments)
public void setReorderArguments(boolean reorder)
public void setInitMethod(java.lang.String initMethod)
public java.lang.String getInitMethod()
public void setDestroyMethod(java.lang.String destroyMethod)
public java.lang.String getDestroyMethod()
public java.util.List<Recipe> getExplicitDependencies()
public void setExplicitDependencies(java.util.List<Recipe> explicitDependencies)
public void setInterceptorLookupKey(BeanMetadata metadata)
public java.util.List<Recipe> getConstructorDependencies()
Recipe
getConstructorDependencies
in interface Recipe
getConstructorDependencies
in class AbstractRecipe
public java.util.List<Recipe> getDependencies()
Recipe
protected java.lang.Class loadClass(java.lang.String className)
loadClass
in class AbstractRecipe
protected ReifiedType loadType(java.lang.String className)
loadType
in class AbstractRecipe
protected java.lang.reflect.Method getInitMethod(java.lang.Object instance) throws ComponentDefinitionException
ComponentDefinitionException
public java.lang.reflect.Method getDestroyMethod(java.lang.Object instance) throws ComponentDefinitionException
ComponentDefinitionException
protected java.lang.Object internalCreate() throws ComponentDefinitionException
internalCreate
in class AbstractRecipe
ComponentDefinitionException
public void destroy(java.lang.Object obj)
Recipe
destroy
in interface Recipe
destroy
in class AbstractRecipe
obj
- the instance to be destroyedpublic void setProperties(java.lang.Object instance) throws ComponentDefinitionException
ComponentDefinitionException
public java.lang.Class getType()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |