public class ObjectRecipe extends AbstractRecipe
Modifier and Type | Class and Description |
---|---|
static class |
ObjectRecipe.AutoMatchProperty |
static class |
ObjectRecipe.CompoundProperty |
static class |
ObjectRecipe.FieldMember |
static class |
ObjectRecipe.FieldProperty |
static interface |
ObjectRecipe.Member |
static class |
ObjectRecipe.MethodMember |
static class |
ObjectRecipe.Property |
static class |
ObjectRecipe.SetterProperty |
Constructor and Description |
---|
ObjectRecipe(Class typeClass) |
ObjectRecipe(Class typeClass,
Map<String,Object> properties) |
ObjectRecipe(Class typeClass,
String factoryMethod) |
ObjectRecipe(Class typeClass,
String[] constructorArgNames) |
ObjectRecipe(Class typeClass,
String[] constructorArgNames,
Class[] constructorArgTypes) |
ObjectRecipe(Class type,
String factoryMethod,
String[] constructorArgNames) |
ObjectRecipe(Class type,
String factoryMethod,
String[] constructorArgNames,
Class[] constructorArgTypes) |
ObjectRecipe(Class typeClass,
String factoryMethod,
String[] constructorArgNames,
Class[] constructorArgTypes,
Map<String,Object> properties) |
ObjectRecipe(String typeName) |
ObjectRecipe(String typeName,
Map<String,Object> properties) |
ObjectRecipe(String typeName,
String factoryMethod) |
ObjectRecipe(String typeName,
String[] constructorArgNames) |
ObjectRecipe(String typeName,
String[] constructorArgNames,
Class[] constructorArgTypes) |
ObjectRecipe(String typeName,
String factoryMethod,
String[] constructorArgNames) |
ObjectRecipe(String typeName,
String factoryMethod,
String[] constructorArgNames,
Class[] constructorArgTypes) |
ObjectRecipe(String typeName,
String factoryMethod,
String[] constructorArgNames,
Class[] constructorArgTypes,
Map<String,Object> properties) |
create, create, create, getName, getPriority, setName, toString
public ObjectRecipe(Class typeClass)
public ObjectRecipe(Class typeClass, String factoryMethod)
public ObjectRecipe(Class typeClass, Map<String,Object> properties)
public ObjectRecipe(Class typeClass, String[] constructorArgNames)
public ObjectRecipe(Class typeClass, String[] constructorArgNames, Class[] constructorArgTypes)
public ObjectRecipe(Class type, String factoryMethod, String[] constructorArgNames)
public ObjectRecipe(Class type, String factoryMethod, String[] constructorArgNames, Class[] constructorArgTypes)
public ObjectRecipe(Class typeClass, String factoryMethod, String[] constructorArgNames, Class[] constructorArgTypes, Map<String,Object> properties)
public ObjectRecipe(String typeName)
public ObjectRecipe(String typeName, String factoryMethod)
public ObjectRecipe(String typeName, Map<String,Object> properties)
public ObjectRecipe(String typeName, String[] constructorArgNames)
public ObjectRecipe(String typeName, String[] constructorArgNames, Class[] constructorArgTypes)
public ObjectRecipe(String typeName, String factoryMethod, String[] constructorArgNames)
public ObjectRecipe(String typeName, String factoryMethod, String[] constructorArgNames, Class[] constructorArgTypes)
public Set<Option> getOptions()
public List<String> getConstructorArgNames()
public void setConstructorArgNames(String[] constructorArgNames)
public void setConstructorArgNames(List<String> constructorArgNames)
public List<Class<?>> getConstructorArgTypes()
public void setConstructorArgTypes(Class[] constructorArgTypes)
public void setConstructorArgTypes(List<? extends Class<?>> constructorArgTypes)
public String getFactoryMethod()
public void setFactoryMethod(String factoryMethod)
public Object getProperty(String name)
public Map<String,Object> getProperties()
public void setProperty(String name, Object value)
public void setFieldProperty(String name, Object value)
public void setMethodProperty(String name, Object value)
public void setAutoMatchProperty(String type, Object value)
public void setCompoundProperty(String name, Object value)
public void setAllProperties(Map<?,?> map)
public Map<String,Object> getUnsetProperties()
public List<Recipe> getNestedRecipes()
getNestedRecipes
in interface Recipe
getNestedRecipes
in class AbstractRecipe
public List<Recipe> getConstructorRecipes()
getConstructorRecipes
in interface Recipe
getConstructorRecipes
in class AbstractRecipe
protected Object internalCreate(Type expectedType, boolean lazyRefAllowed) throws ConstructionException
internalCreate
in class AbstractRecipe
ConstructionException
public void setProperties(Object instance) throws ConstructionException
ConstructionException
public Class setStaticProperties() throws ConstructionException
ConstructionException
Copyright © 2005–2015. All rights reserved.