public class XBeanComponentBuilder<T> extends Object implements ComponentBuilder<T>
Modifier and Type | Class and Description |
---|---|
static class |
XBeanComponentBuilder.RequirementRecipe<T> |
Constructor and Description |
---|
XBeanComponentBuilder() |
XBeanComponentBuilder(ComponentManager<T> componentManager) |
Modifier and Type | Method and Description |
---|---|
T |
build(ComponentDescriptor<T> descriptor,
org.codehaus.plexus.classworlds.realm.ClassRealm realm,
ComponentBuildListener listener) |
protected T |
createComponentInstance(ComponentDescriptor<T> descriptor,
org.codehaus.plexus.classworlds.realm.ClassRealm realm) |
org.apache.xbean.recipe.ObjectRecipe |
createObjectRecipe(T instance,
ComponentDescriptor<T> descriptor,
org.codehaus.plexus.classworlds.realm.ClassRealm realm) |
protected String |
fromXML(String elementName) |
ComponentManager<T> |
getComponentManager() |
protected MutablePlexusContainer |
getContainer() |
void |
setComponentManager(ComponentManager<T> componentManager) |
protected boolean |
shouldConfigure(ComponentDescriptor<T> descriptor) |
protected void |
startComponentLifecycle(Object component,
org.codehaus.plexus.classworlds.realm.ClassRealm realm) |
public XBeanComponentBuilder()
public XBeanComponentBuilder(ComponentManager<T> componentManager)
public ComponentManager<T> getComponentManager()
public void setComponentManager(ComponentManager<T> componentManager)
protected MutablePlexusContainer getContainer()
public T build(ComponentDescriptor<T> descriptor, org.codehaus.plexus.classworlds.realm.ClassRealm realm, ComponentBuildListener listener) throws ComponentInstantiationException, ComponentLifecycleException
build
in interface ComponentBuilder<T>
ComponentInstantiationException
ComponentLifecycleException
protected T createComponentInstance(ComponentDescriptor<T> descriptor, org.codehaus.plexus.classworlds.realm.ClassRealm realm) throws ComponentInstantiationException, ComponentLifecycleException
public org.apache.xbean.recipe.ObjectRecipe createObjectRecipe(T instance, ComponentDescriptor<T> descriptor, org.codehaus.plexus.classworlds.realm.ClassRealm realm) throws ComponentInstantiationException, PlexusConfigurationException
protected boolean shouldConfigure(ComponentDescriptor<T> descriptor)
protected void startComponentLifecycle(Object component, org.codehaus.plexus.classworlds.realm.ClassRealm realm) throws ComponentLifecycleException
ComponentLifecycleException
Copyright © 2001–2019 Codehaus Plexus. All rights reserved.