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(java.lang.Class typeClass) |
ObjectRecipe(java.lang.Class typeClass,
java.util.Map<java.lang.String,java.lang.Object> properties) |
ObjectRecipe(java.lang.Class typeClass,
java.lang.String factoryMethod) |
ObjectRecipe(java.lang.Class typeClass,
java.lang.String[] constructorArgNames) |
ObjectRecipe(java.lang.Class typeClass,
java.lang.String[] constructorArgNames,
java.lang.Class[] constructorArgTypes) |
ObjectRecipe(java.lang.Class type,
java.lang.String factoryMethod,
java.lang.String[] constructorArgNames) |
ObjectRecipe(java.lang.Class type,
java.lang.String factoryMethod,
java.lang.String[] constructorArgNames,
java.lang.Class[] constructorArgTypes) |
ObjectRecipe(java.lang.Class typeClass,
java.lang.String factoryMethod,
java.lang.String[] constructorArgNames,
java.lang.Class[] constructorArgTypes,
java.util.Map<java.lang.String,java.lang.Object> properties) |
ObjectRecipe(java.lang.String typeName) |
ObjectRecipe(java.lang.String typeName,
java.util.Map<java.lang.String,java.lang.Object> properties) |
ObjectRecipe(java.lang.String typeName,
java.lang.String factoryMethod) |
ObjectRecipe(java.lang.String typeName,
java.lang.String[] constructorArgNames) |
ObjectRecipe(java.lang.String typeName,
java.lang.String[] constructorArgNames,
java.lang.Class[] constructorArgTypes) |
ObjectRecipe(java.lang.String typeName,
java.lang.String factoryMethod,
java.lang.String[] constructorArgNames) |
ObjectRecipe(java.lang.String typeName,
java.lang.String factoryMethod,
java.lang.String[] constructorArgNames,
java.lang.Class[] constructorArgTypes) |
ObjectRecipe(java.lang.String typeName,
java.lang.String factoryMethod,
java.lang.String[] constructorArgNames,
java.lang.Class[] constructorArgTypes,
java.util.Map<java.lang.String,java.lang.Object> properties) |
| Modifier and Type | Method and Description |
|---|---|
void |
allow(Option option) |
boolean |
canCreate(java.lang.reflect.Type type) |
void |
disallow(Option option) |
java.util.List<java.lang.String> |
getConstructorArgNames() |
java.util.List<java.lang.Class<?>> |
getConstructorArgTypes() |
java.util.List<Recipe> |
getConstructorRecipes() |
java.lang.String |
getFactoryMethod() |
java.util.List<Recipe> |
getNestedRecipes() |
java.util.Set<Option> |
getOptions() |
java.util.Map<java.lang.String,java.lang.Object> |
getProperties() |
java.lang.Object |
getProperty(java.lang.String name) |
java.lang.Class |
getType() |
java.util.Map<java.lang.String,java.lang.Object> |
getUnsetProperties() |
protected java.lang.Object |
internalCreate(java.lang.reflect.Type expectedType,
boolean lazyRefAllowed) |
void |
setAllProperties(java.util.Map<?,?> map) |
void |
setAutoMatchProperty(java.lang.String type,
java.lang.Object value) |
void |
setCompoundProperty(java.lang.String name,
java.lang.Object value) |
void |
setConstructorArgNames(java.util.List<java.lang.String> constructorArgNames) |
void |
setConstructorArgNames(java.lang.String[] constructorArgNames) |
void |
setConstructorArgTypes(java.lang.Class[] constructorArgTypes) |
void |
setConstructorArgTypes(java.util.List<? extends java.lang.Class<?>> constructorArgTypes) |
void |
setFactoryMethod(java.lang.String factoryMethod) |
void |
setFieldProperty(java.lang.String name,
java.lang.Object value) |
void |
setMethodProperty(java.lang.String name,
java.lang.Object value) |
void |
setProperties(java.lang.Object instance) |
void |
setProperty(java.lang.String name,
java.lang.Object value) |
java.lang.Class |
setStaticProperties() |
create, create, create, getName, getPriority, setName, toStringpublic ObjectRecipe(java.lang.Class typeClass)
public ObjectRecipe(java.lang.Class typeClass,
java.lang.String factoryMethod)
public ObjectRecipe(java.lang.Class typeClass,
java.util.Map<java.lang.String,java.lang.Object> properties)
public ObjectRecipe(java.lang.Class typeClass,
java.lang.String[] constructorArgNames)
public ObjectRecipe(java.lang.Class typeClass,
java.lang.String[] constructorArgNames,
java.lang.Class[] constructorArgTypes)
public ObjectRecipe(java.lang.Class type,
java.lang.String factoryMethod,
java.lang.String[] constructorArgNames)
public ObjectRecipe(java.lang.Class type,
java.lang.String factoryMethod,
java.lang.String[] constructorArgNames,
java.lang.Class[] constructorArgTypes)
public ObjectRecipe(java.lang.Class typeClass,
java.lang.String factoryMethod,
java.lang.String[] constructorArgNames,
java.lang.Class[] constructorArgTypes,
java.util.Map<java.lang.String,java.lang.Object> properties)
public ObjectRecipe(java.lang.String typeName)
public ObjectRecipe(java.lang.String typeName,
java.lang.String factoryMethod)
public ObjectRecipe(java.lang.String typeName,
java.util.Map<java.lang.String,java.lang.Object> properties)
public ObjectRecipe(java.lang.String typeName,
java.lang.String[] constructorArgNames)
public ObjectRecipe(java.lang.String typeName,
java.lang.String[] constructorArgNames,
java.lang.Class[] constructorArgTypes)
public ObjectRecipe(java.lang.String typeName,
java.lang.String factoryMethod,
java.lang.String[] constructorArgNames)
public ObjectRecipe(java.lang.String typeName,
java.lang.String factoryMethod,
java.lang.String[] constructorArgNames,
java.lang.Class[] constructorArgTypes)
public ObjectRecipe(java.lang.String typeName,
java.lang.String factoryMethod,
java.lang.String[] constructorArgNames,
java.lang.Class[] constructorArgTypes,
java.util.Map<java.lang.String,java.lang.Object> properties)
public void allow(Option option)
public void disallow(Option option)
public java.util.Set<Option> getOptions()
public java.util.List<java.lang.String> getConstructorArgNames()
public void setConstructorArgNames(java.lang.String[] constructorArgNames)
public void setConstructorArgNames(java.util.List<java.lang.String> constructorArgNames)
public java.util.List<java.lang.Class<?>> getConstructorArgTypes()
public void setConstructorArgTypes(java.lang.Class[] constructorArgTypes)
public void setConstructorArgTypes(java.util.List<? extends java.lang.Class<?>> constructorArgTypes)
public java.lang.String getFactoryMethod()
public void setFactoryMethod(java.lang.String factoryMethod)
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 setFieldProperty(java.lang.String name,
java.lang.Object value)
public void setMethodProperty(java.lang.String name,
java.lang.Object value)
public void setAutoMatchProperty(java.lang.String type,
java.lang.Object value)
public void setCompoundProperty(java.lang.String name,
java.lang.Object value)
public void setAllProperties(java.util.Map<?,?> map)
public java.util.Map<java.lang.String,java.lang.Object> getUnsetProperties()
public java.util.List<Recipe> getNestedRecipes()
getNestedRecipes in interface RecipegetNestedRecipes in class AbstractRecipepublic java.util.List<Recipe> getConstructorRecipes()
getConstructorRecipes in interface RecipegetConstructorRecipes in class AbstractRecipepublic boolean canCreate(java.lang.reflect.Type type)
protected java.lang.Object internalCreate(java.lang.reflect.Type expectedType,
boolean lazyRefAllowed)
throws ConstructionException
internalCreate in class AbstractRecipeConstructionExceptionpublic void setProperties(java.lang.Object instance)
throws ConstructionException
ConstructionExceptionpublic java.lang.Class setStaticProperties()
throws ConstructionException
ConstructionExceptionpublic java.lang.Class getType()