org.apache.xbean.recipe
Class AbstractRecipe

java.lang.Object
  extended by 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
protected AbstractRecipe()
           
 
Method Summary
 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()
           
 
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 java.lang.String getName()
Specified by:
getName in interface Recipe

setName

public void setName(java.lang.String name)

getPriority

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

create

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

create

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

create

public final java.lang.Object create(java.lang.reflect.Type expectedType,
                                     boolean lazyRefAllowed)
                              throws ConstructionException
Specified by:
create in interface Recipe
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 interface Recipe

getConstructorRecipes

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

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2005-2011. All Rights Reserved.