Package org.apache.xbean.recipe
Class CollectionRecipe
- java.lang.Object
-
- org.apache.xbean.recipe.AbstractRecipe
-
- org.apache.xbean.recipe.CollectionRecipe
-
- All Implemented Interfaces:
java.io.Serializable,Recipe
public class CollectionRecipe extends AbstractRecipe
- Version:
- $Rev: 6685 $ $Date: 2005-12-28T00:29:37.967210Z $
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CollectionRecipe()CollectionRecipe(java.lang.Class type)CollectionRecipe(java.lang.String type)CollectionRecipe(java.util.Collection<?> collection)CollectionRecipe(CollectionRecipe collectionRecipe)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(java.lang.Object value)voidaddAll(java.util.Collection<?> value)voidallow(Option option)booleancanCreate(java.lang.reflect.Type expectedType)voiddisallow(Option option)java.util.List<java.lang.Object>getAll()java.util.List<Recipe>getConstructorRecipes()java.util.List<Recipe>getNestedRecipes()protected java.lang.ObjectinternalCreate(java.lang.reflect.Type expectedType, boolean lazyRefAllowed)voidremove(java.lang.Object value)voidremoveAll(java.lang.Object value)voidsetRegistry(PropertyEditorRegistry registry)-
Methods inherited from class org.apache.xbean.recipe.AbstractRecipe
create, create, create, getName, getPriority, setName, toString
-
-
-
-
Constructor Detail
-
CollectionRecipe
public CollectionRecipe()
-
CollectionRecipe
public CollectionRecipe(java.lang.String type)
-
CollectionRecipe
public CollectionRecipe(java.lang.Class type)
-
CollectionRecipe
public CollectionRecipe(java.util.Collection<?> collection)
-
CollectionRecipe
public CollectionRecipe(CollectionRecipe collectionRecipe)
-
-
Method Detail
-
setRegistry
public void setRegistry(PropertyEditorRegistry registry)
-
getNestedRecipes
public java.util.List<Recipe> getNestedRecipes()
- Specified by:
getNestedRecipesin interfaceRecipe- Overrides:
getNestedRecipesin classAbstractRecipe
-
getConstructorRecipes
public java.util.List<Recipe> getConstructorRecipes()
- Specified by:
getConstructorRecipesin interfaceRecipe- Overrides:
getConstructorRecipesin classAbstractRecipe
-
canCreate
public boolean canCreate(java.lang.reflect.Type expectedType)
-
internalCreate
protected java.lang.Object internalCreate(java.lang.reflect.Type expectedType, boolean lazyRefAllowed) throws ConstructionException
- Specified by:
internalCreatein classAbstractRecipe- Throws:
ConstructionException
-
add
public void add(java.lang.Object value)
-
addAll
public void addAll(java.util.Collection<?> value)
-
remove
public void remove(java.lang.Object value)
-
removeAll
public void removeAll(java.lang.Object value)
-
getAll
public java.util.List<java.lang.Object> getAll()
-
-