org.apache.aries.blueprint.di
Class ComponentFactoryRecipe<T extends ComponentFactoryMetadata>
java.lang.Object
org.apache.aries.blueprint.di.AbstractRecipe
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.
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 |
ComponentFactoryRecipe
public ComponentFactoryRecipe(java.lang.String name,
T metadata,
ExtendedBlueprintContainer container,
java.util.List<Recipe> dependencies)
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.