org.apache.aries.blueprint.di
Class ValueRecipe

java.lang.Object
  extended by org.apache.aries.blueprint.di.AbstractRecipe
      extended by 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) $

Field Summary
 
Fields inherited from class org.apache.aries.blueprint.di.AbstractRecipe
name, prototype
 
Constructor Summary
ValueRecipe(java.lang.String name, ValueMetadata value, java.lang.Object type)
           
 
Method Summary
 java.util.List<Recipe> getDependencies()
          Get the list of nested recipes, i.e.
protected  java.lang.Object internalCreate()
           
 java.lang.String toString()
           
 
Methods inherited from class org.apache.aries.blueprint.di.AbstractRecipe
addPartialObject, convert, convert, create, destroy, getConstructorDependencies, getName, isPrototype, loadClass, loadType, loadType, setPrototype
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ValueRecipe

public ValueRecipe(java.lang.String name,
                   ValueMetadata value,
                   java.lang.Object type)
Method Detail

getDependencies

public java.util.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 java.lang.Object internalCreate()
                                   throws ComponentDefinitionException
Specified by:
internalCreate in class AbstractRecipe
Throws:
ComponentDefinitionException

toString

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


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