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[] constructorArgNames, Class[] constructorArgTypes)
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[] constructorArgNames, Class[] constructorArgTypes)
public ObjectRecipe(String typeName, String factoryMethod, String[] constructorArgNames)
public ObjectRecipe(String typeName, String factoryMethod, String[] constructorArgNames, Class[] constructorArgTypes)
public void allow(Option option)
public void disallow(Option option)
public void setConstructorArgNames(String[] constructorArgNames)
public void setConstructorArgTypes(Class[] constructorArgTypes)
public void setConstructorArgTypes(List<? extends Class<?>> constructorArgTypes)
public String getFactoryMethod()
public void setFactoryMethod(String factoryMethod)
public void setAllProperties(Map<?,?> map)
public List<Recipe> getNestedRecipes()
getNestedRecipes
in interface Recipe
getNestedRecipes
in class AbstractRecipe
public List<Recipe> getConstructorRecipes()
getConstructorRecipes
in interface Recipe
getConstructorRecipes
in class AbstractRecipe
public boolean canCreate(Type type)
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
public Class getType()
Copyright © 2005–2015. All rights reserved.