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 |
ComponentFactoryRecipe
public ComponentFactoryRecipe(String name,
T metadata,
ExtendedBlueprintContainer container,
List<Recipe> 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
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
destroy
public void destroy(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.