public class SpringComponent
extends java.lang.Object
implements org.fabric3.spi.container.component.Component
| Constructor and Description |
|---|
SpringComponent(java.net.URI uri,
javax.xml.namespace.QName deployable,
SCAApplicationContext parent,
java.util.List<java.net.URL> sources,
java.lang.ClassLoader classLoader,
boolean validating,
java.util.Map<java.lang.String,java.lang.String> alias,
java.util.List<org.springframework.beans.factory.config.BeanPostProcessor> processors)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
attach(java.lang.String name,
java.lang.Class<?> type,
org.fabric3.spi.container.objectfactory.ObjectFactory factory)
Adds an object factory for a wire or producer proxy.
|
void |
detach(java.lang.String name)
Removes an object factory for a wire or producer proxy
|
void |
endUpdate() |
java.lang.Object |
getBean(java.lang.String name)
Returns a bean instance for the given bean name.
|
java.lang.Class<?> |
getBeanClass(java.lang.String name)
Returns the bean implementation class for the given bean name.
|
java.lang.ClassLoader |
getClassLoader() |
java.net.URI |
getClassLoaderId() |
javax.xml.namespace.QName |
getDeployable() |
org.fabric3.api.annotation.monitor.MonitorLevel |
getLevel() |
java.lang.String |
getName() |
SCAApplicationContext |
getParent()
Returns the parent application context.
|
java.net.URI |
getUri() |
void |
setClassLoaderId(java.net.URI id) |
void |
setLevel(org.fabric3.api.annotation.monitor.MonitorLevel level) |
void |
start() |
void |
startUpdate() |
void |
stop() |
public SpringComponent(java.net.URI uri,
javax.xml.namespace.QName deployable,
SCAApplicationContext parent,
java.util.List<java.net.URL> sources,
java.lang.ClassLoader classLoader,
boolean validating,
java.util.Map<java.lang.String,java.lang.String> alias,
java.util.List<org.springframework.beans.factory.config.BeanPostProcessor> processors)
uri - the component URI.deployable - the composite the component is deployed withparent - the parent application context for resolving wire and event stream proxiessources - the location of the application contextsclassLoader - the contribution classloader containing user-defined application classes and resourcesvalidating - true if application context validation should be donealias - bean aliases derived from the default attribute of an SCA reference tagprocessors - bean post processorspublic java.net.URI getUri()
getUri in interface org.fabric3.spi.container.component.Componentpublic javax.xml.namespace.QName getDeployable()
getDeployable in interface org.fabric3.spi.container.component.Componentpublic java.net.URI getClassLoaderId()
getClassLoaderId in interface org.fabric3.spi.container.component.Componentpublic void setClassLoaderId(java.net.URI id)
setClassLoaderId in interface org.fabric3.spi.container.component.Componentpublic java.lang.String getName()
getName in interface org.fabric3.api.host.monitor.Monitorablepublic org.fabric3.api.annotation.monitor.MonitorLevel getLevel()
getLevel in interface org.fabric3.api.host.monitor.Monitorablepublic void setLevel(org.fabric3.api.annotation.monitor.MonitorLevel level)
setLevel in interface org.fabric3.api.host.monitor.Monitorablepublic void start()
throws SpringComponentStartException
start in interface org.fabric3.spi.container.component.ComponentSpringComponentStartExceptionpublic void stop()
stop in interface org.fabric3.spi.container.component.Componentpublic void startUpdate()
startUpdate in interface org.fabric3.spi.container.component.Componentpublic void endUpdate()
endUpdate in interface org.fabric3.spi.container.component.Componentpublic java.lang.ClassLoader getClassLoader()
public void attach(java.lang.String name,
java.lang.Class<?> type,
org.fabric3.spi.container.objectfactory.ObjectFactory factory)
name - the reference or producer nametype - the interface type implemented by the proxyfactory - the object factorypublic void detach(java.lang.String name)
name - the reference or producer namepublic SCAApplicationContext getParent()
public java.lang.Object getBean(java.lang.String name)
name - the bean namepublic java.lang.Class<?> getBeanClass(java.lang.String name)
name - the bean name