org.apache.xbean.recipe
Class MapRecipe

java.lang.Object
  extended by org.apache.xbean.recipe.AbstractRecipe
      extended by org.apache.xbean.recipe.MapRecipe
All Implemented Interfaces:
Serializable, Recipe

public class MapRecipe
extends AbstractRecipe

Version:
$Rev: 6687 $ $Date: 2005-12-28T21:08:56.733437Z $
See Also:
Serialized Form

Nested Class Summary
static class MapRecipe.DummyDictionaryAsMap
           
 
Constructor Summary
MapRecipe()
           
MapRecipe(Class type)
           
MapRecipe(Map<?,?> map)
           
MapRecipe(MapRecipe mapRecipe)
           
MapRecipe(String type)
           
 
Method Summary
 void allow(Option option)
           
 boolean canCreate(Type type)
           
 void disallow(Option option)
           
 List<Recipe> getConstructorRecipes()
           
 List<Recipe> getNestedRecipes()
           
protected  Object internalCreate(Type expectedType, boolean lazyRefAllowed)
           
 void put(Object key, Object value)
           
 void putAll(Map<?,?> map)
           
 
Methods inherited from class org.apache.xbean.recipe.AbstractRecipe
create, create, create, getName, getPriority, setName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MapRecipe

public MapRecipe()

MapRecipe

public MapRecipe(String type)

MapRecipe

public MapRecipe(Class type)

MapRecipe

public MapRecipe(Map<?,?> map)

MapRecipe

public MapRecipe(MapRecipe mapRecipe)
Method Detail

allow

public void allow(Option option)

disallow

public void disallow(Option option)

getNestedRecipes

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

getConstructorRecipes

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

canCreate

public boolean canCreate(Type type)

internalCreate

protected Object internalCreate(Type expectedType,
                                boolean lazyRefAllowed)
                         throws ConstructionException
Specified by:
internalCreate in class AbstractRecipe
Throws:
ConstructionException

put

public void put(Object key,
                Object value)

putAll

public void putAll(Map<?,?> map)


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