org.apache.aries.blueprint.di
Class ComponentFactoryRecipe<T extends ComponentFactoryMetadata>

java.lang.Object
  extended by org.apache.aries.blueprint.di.AbstractRecipe
      extended by org.apache.aries.blueprint.di.ComponentFactoryRecipe<T>
Type Parameters:
T -
All Implemented Interfaces:
Recipe
Direct Known Subclasses:
DependentComponentFactoryRecipe

public class ComponentFactoryRecipe<T extends ComponentFactoryMetadata>
extends AbstractRecipe

Pass-through recipe that allows custom bean manager (represented by a ComponentFactoryMetadata instance) to fit into the container lifecycle.


Field Summary
 
Fields inherited from class org.apache.aries.blueprint.di.AbstractRecipe
name, prototype
 
Constructor Summary
ComponentFactoryRecipe(java.lang.String name, T metadata, ExtendedBlueprintContainer container, java.util.List<Recipe> dependencies)
           
 
Method Summary
 void destroy(java.lang.Object instance)
          Destroy an instance created by this recipe
 java.util.List<Recipe> getDependencies()
          Get the list of nested recipes, i.e.
protected  T getMetadata()
           
protected  java.lang.Object internalCreate()
           
 
Methods inherited from class org.apache.aries.blueprint.di.AbstractRecipe
addPartialObject, convert, convert, create, getConstructorDependencies, getName, isPrototype, loadClass, loadType, loadType, setPrototype, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ComponentFactoryRecipe

public ComponentFactoryRecipe(java.lang.String name,
                              T metadata,
                              ExtendedBlueprintContainer container,
                              java.util.List<Recipe> dependencies)
Method Detail

internalCreate

protected java.lang.Object internalCreate()
                                   throws ComponentDefinitionException
Specified by:
internalCreate in class AbstractRecipe
Throws:
ComponentDefinitionException

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

destroy

public void destroy(java.lang.Object instance)
Description copied from interface: Recipe
Destroy an instance created by this recipe

Specified by:
destroy in interface Recipe
Overrides:
destroy in class AbstractRecipe
Parameters:
instance - the instance to be destroyed

getMetadata

protected T getMetadata()


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