org.apache.aries.blueprint.di
Class ValueRecipe
java.lang.Object
org.apache.aries.blueprint.di.AbstractRecipe
org.apache.aries.blueprint.di.ValueRecipe
- All Implemented Interfaces:
- Recipe
public class ValueRecipe
- extends AbstractRecipe
This recipe will be used to create an object from a ValueMetadata.
We need to keep the reference to the ValueMetadata so that we can lazily retrieve
the value, allowing for placeholders or such to be used at the last moment.
- Version:
- $Rev: 820286 $, $Date: 2009-09-30 15:45:55 +0100 (Wed, 30 Sep 2009) $
Methods inherited from class org.apache.aries.blueprint.di.AbstractRecipe |
addPartialObject, convert, convert, create, destroy, getConstructorDependencies, getName, isPrototype, loadClass, loadType, loadType, setPrototype |
ValueRecipe
public ValueRecipe(String name,
org.osgi.service.blueprint.reflect.ValueMetadata value,
Object type)
getDependencies
public List<Recipe> getDependencies()
- Description copied from interface:
Recipe
- Get the list of nested recipes, i.e. all dependencies including
constructor dependencies.
- Returns:
- a list of dependencies
internalCreate
protected Object internalCreate()
throws org.osgi.service.blueprint.container.ComponentDefinitionException
- Specified by:
internalCreate
in class AbstractRecipe
- Throws:
org.osgi.service.blueprint.container.ComponentDefinitionException
toString
public String toString()
- Overrides:
toString
in class AbstractRecipe
Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.