public class BeanRecipe extends AbstractRecipe
Recipe
to create POJOs.name, prototype
Constructor and Description |
---|
BeanRecipe(String name,
ExtendedBlueprintContainer blueprintContainer,
Object type,
boolean allowsFieldInjection) |
addPartialObject, convert, convert, create, getName, isPrototype, loadType, setPrototype, toString
public BeanRecipe(String name, ExtendedBlueprintContainer blueprintContainer, Object type, boolean allowsFieldInjection)
public void setFactoryMethod(String method)
public void setFactoryComponent(Recipe factory)
public void setReorderArguments(boolean reorder)
public void setInitMethod(String initMethod)
public String getInitMethod()
public void setDestroyMethod(String destroyMethod)
public String getDestroyMethod()
public void setInterceptorLookupKey(BeanMetadata metadata)
public List<Recipe> getConstructorDependencies()
Recipe
getConstructorDependencies
in interface Recipe
getConstructorDependencies
in class AbstractRecipe
public List<Recipe> getDependencies()
Recipe
protected Class loadClass(String className)
loadClass
in class AbstractRecipe
protected 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 AbstractRecipe
ComponentDefinitionException
public void destroy(Object obj)
Recipe
destroy
in interface Recipe
destroy
in class AbstractRecipe
obj
- the instance to be destroyedpublic void setProperties(Object instance) throws ComponentDefinitionException
ComponentDefinitionException
public Class getType()
Copyright © 2015. All rights reserved.