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, toStringpublic 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 RecipegetNestedRecipes in class AbstractRecipepublic List<Recipe> getConstructorRecipes()
getConstructorRecipes in interface RecipegetConstructorRecipes in class AbstractRecipepublic boolean canCreate(Type type)
protected Object internalCreate(Type expectedType, boolean lazyRefAllowed) throws ConstructionException
internalCreate in class AbstractRecipeConstructionExceptionpublic void setProperties(Object instance) throws ConstructionException
ConstructionExceptionpublic Class setStaticProperties() throws ConstructionException
ConstructionExceptionpublic Class getType()
Copyright © 2005-2013 The Apache Software Foundation. All Rights Reserved.