org.apache.xbean.recipe
Class AbstractRecipe

java.lang.Object
  extended by org.apache.xbean.recipe.AbstractRecipe
All Implemented Interfaces:
Serializable, Recipe
Direct Known Subclasses:
AllPropertiesRecipe, ArrayRecipe, CollectionRecipe, MapRecipe, ObjectRecipe, ReferenceNameRecipe, ReferenceRecipe, UnsetPropertiesRecipe

public abstract class AbstractRecipe
extends Object
implements Recipe

See Also:
Serialized Form

Constructor Summary
protected AbstractRecipe()
           
 
Method Summary
 Object create()
           
 Object create(ClassLoader classLoader)
           
 Object create(Type expectedType, boolean lazyRefAllowed)
           
 List<Recipe> getConstructorRecipes()
           
 String getName()
           
 List<Recipe> getNestedRecipes()
           
 float getPriority()
           
protected abstract  Object internalCreate(Type expectedType, boolean lazyRefAllowed)
           
 void setName(String name)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.xbean.recipe.Recipe
canCreate
 

Constructor Detail

AbstractRecipe

protected AbstractRecipe()
Method Detail

getName

public String getName()
Specified by:
getName in interface Recipe

setName

public void setName(String name)

getPriority

public float getPriority()
Specified by:
getPriority in interface Recipe

create

public Object create()
              throws ConstructionException
Specified by:
create in interface Recipe
Throws:
ConstructionException

create

public final Object create(ClassLoader classLoader)
                    throws ConstructionException
Specified by:
create in interface Recipe
Throws:
ConstructionException

create

public final Object create(Type expectedType,
                           boolean lazyRefAllowed)
                    throws ConstructionException
Specified by:
create in interface Recipe
Throws:
ConstructionException

internalCreate

protected abstract Object internalCreate(Type expectedType,
                                         boolean lazyRefAllowed)
                                  throws ConstructionException
Throws:
ConstructionException

getNestedRecipes

public List<Recipe> getNestedRecipes()
Specified by:
getNestedRecipes in interface Recipe

getConstructorRecipes

public List<Recipe> getConstructorRecipes()
Specified by:
getConstructorRecipes in interface Recipe

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2005-2009 The Apache Software Foundation. All Rights Reserved.