public class BeanRecipe extends AbstractRecipe
Recipe to create POJOs.| Modifier and Type | Class and Description |
|---|---|
class |
BeanRecipe.VoidableCallable |
name, prototype| Constructor and Description |
|---|
BeanRecipe(String name,
ExtendedBlueprintContainer blueprintContainer,
Object type,
boolean allowsFieldInjection) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy(Object obj)
Destroy an instance created by this recipe
|
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 org.osgi.service.blueprint.container.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 |
setInterceptorLookupKey(org.osgi.service.blueprint.reflect.BeanMetadata metadata) |
void |
setProperties(Object instance) |
void |
setProperty(String name,
Object value) |
void |
setReorderArguments(boolean reorder) |
addPartialObject, canConvert, convert, convert, create, getName, isPrototype, loadType, setPrototype, toStringpublic 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(org.osgi.service.blueprint.reflect.BeanMetadata metadata)
public List<Recipe> getConstructorDependencies()
RecipegetConstructorDependencies in interface RecipegetConstructorDependencies in class AbstractRecipepublic List<Recipe> getDependencies()
Recipeprotected Class loadClass(String className)
loadClass in class AbstractRecipeprotected org.osgi.service.blueprint.container.ReifiedType loadType(String className)
loadType in class AbstractRecipeprotected Method getInitMethod(Object instance) throws org.osgi.service.blueprint.container.ComponentDefinitionException
org.osgi.service.blueprint.container.ComponentDefinitionExceptionpublic Method getDestroyMethod(Object instance) throws org.osgi.service.blueprint.container.ComponentDefinitionException
org.osgi.service.blueprint.container.ComponentDefinitionExceptionprotected Object internalCreate() throws org.osgi.service.blueprint.container.ComponentDefinitionException
internalCreate in class AbstractRecipeorg.osgi.service.blueprint.container.ComponentDefinitionExceptionpublic void destroy(Object obj)
Recipedestroy in interface Recipedestroy in class AbstractRecipeobj - the instance to be destroyedpublic void setProperties(Object instance) throws org.osgi.service.blueprint.container.ComponentDefinitionException
org.osgi.service.blueprint.container.ComponentDefinitionExceptionpublic Class getType()
Copyright © 2009-2015 The Apache Software Foundation. All Rights Reserved.