public abstract class AbstractRecipe extends Object implements Recipe
Modifier and Type | Field and Description |
---|---|
protected String |
name |
protected boolean |
prototype |
Modifier | Constructor and Description |
---|---|
protected |
AbstractRecipe(String name) |
Modifier and Type | Method and Description |
---|---|
protected void |
addPartialObject(Object obj) |
protected boolean |
canConvert(Object obj,
org.osgi.service.blueprint.container.ReifiedType type) |
protected Object |
convert(Object obj,
org.osgi.service.blueprint.container.ReifiedType type) |
protected Object |
convert(Object obj,
Type type) |
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.
|
String |
getName()
Get the unique name for this recipe.
|
protected abstract Object |
internalCreate() |
boolean |
isPrototype() |
protected Class |
loadClass(String className) |
protected org.osgi.service.blueprint.container.ReifiedType |
loadType(String typeName) |
protected org.osgi.service.blueprint.container.ReifiedType |
loadType(String typeName,
ClassLoader fromClassLoader) |
void |
setPrototype(boolean prototype) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDependencies
protected final String name
protected boolean prototype
protected AbstractRecipe(String name)
public String getName()
Recipe
public boolean isPrototype()
public void setPrototype(boolean prototype)
public final Object create() throws org.osgi.service.blueprint.container.ComponentDefinitionException
Recipe
protected abstract Object internalCreate() throws org.osgi.service.blueprint.container.ComponentDefinitionException
org.osgi.service.blueprint.container.ComponentDefinitionException
protected void addPartialObject(Object obj)
protected boolean canConvert(Object obj, org.osgi.service.blueprint.container.ReifiedType type)
protected Object convert(Object obj, org.osgi.service.blueprint.container.ReifiedType type) throws Exception
Exception
protected org.osgi.service.blueprint.container.ReifiedType loadType(String typeName)
protected org.osgi.service.blueprint.container.ReifiedType loadType(String typeName, ClassLoader fromClassLoader)
public void destroy(Object instance)
Recipe
public List<Recipe> getConstructorDependencies()
Recipe
getConstructorDependencies
in interface Recipe
Copyright © 2019. All rights reserved.