public interface Recipe
Recipe
interface abstracts the creation of objectsModifier and Type | Method and Description |
---|---|
Object |
create()
Create an instance for this recipe.
|
void |
destroy(Object instance)
Destroy an instance created by this recipe
|
List<Recipe> |
getConstructorDependencies()
Get the list of constructor dependencies, i.e.
|
List<Recipe> |
getDependencies()
Get the list of nested recipes, i.e.
|
String |
getName()
Get the unique name for this recipe.
|
String getName()
List<Recipe> getConstructorDependencies()
List<Recipe> getDependencies()
Object create() throws ComponentDefinitionException
ComponentDefinitionException
void destroy(Object instance)
instance
- the instance to be destroyedCopyright © 2015. All rights reserved.