Package org.apache.xbean.recipe
Class AbstractRecipe
- java.lang.Object
-
- org.apache.xbean.recipe.AbstractRecipe
-
- All Implemented Interfaces:
java.io.Serializable
,Recipe
- Direct Known Subclasses:
AllPropertiesRecipe
,ArrayRecipe
,CollectionRecipe
,MapRecipe
,ObjectRecipe
,ReferenceNameRecipe
,ReferenceRecipe
,UnsetPropertiesRecipe
public abstract class AbstractRecipe extends java.lang.Object implements Recipe
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractRecipe()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.lang.Object
create()
java.lang.Object
create(java.lang.ClassLoader classLoader)
java.lang.Object
create(java.lang.reflect.Type expectedType, boolean lazyRefAllowed)
java.util.List<Recipe>
getConstructorRecipes()
java.lang.String
getName()
java.util.List<Recipe>
getNestedRecipes()
float
getPriority()
protected abstract java.lang.Object
internalCreate(java.lang.reflect.Type expectedType, boolean lazyRefAllowed)
void
setName(java.lang.String name)
java.lang.String
toString()
-
-
-
Method Detail
-
setName
public void setName(java.lang.String name)
-
getPriority
public float getPriority()
- Specified by:
getPriority
in interfaceRecipe
-
create
public java.lang.Object create() throws ConstructionException
- Specified by:
create
in interfaceRecipe
- Throws:
ConstructionException
-
create
public final java.lang.Object create(java.lang.ClassLoader classLoader) throws ConstructionException
- Specified by:
create
in interfaceRecipe
- Throws:
ConstructionException
-
create
public final java.lang.Object create(java.lang.reflect.Type expectedType, boolean lazyRefAllowed) throws ConstructionException
- Specified by:
create
in interfaceRecipe
- Throws:
ConstructionException
-
internalCreate
protected abstract java.lang.Object internalCreate(java.lang.reflect.Type expectedType, boolean lazyRefAllowed) throws ConstructionException
- Throws:
ConstructionException
-
getNestedRecipes
public java.util.List<Recipe> getNestedRecipes()
- Specified by:
getNestedRecipes
in interfaceRecipe
-
getConstructorRecipes
public java.util.List<Recipe> getConstructorRecipes()
- Specified by:
getConstructorRecipes
in interfaceRecipe
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-