|
spring-tx | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.jca.support.ResourceAdapterFactoryBean
public class ResourceAdapterFactoryBean
FactoryBean
that bootstraps
the specified JCA 1.5 ResourceAdapter
,
starting it with a local BootstrapContext
and exposing it for bean references. It will also stop the ResourceAdapter
on context shutdown. This corresponds to 'non-managed' bootstrap in a
local environment, according to the JCA 1.5 specification.
This is essentially an adapter for bean-style bootstrapping of a JCA ResourceAdapter, allowing the BootstrapContext or its elements (such as the JCA WorkManager) to be specified through bean properties.
setResourceAdapter(javax.resource.spi.ResourceAdapter)
,
setBootstrapContext(javax.resource.spi.BootstrapContext)
,
setWorkManager(javax.resource.spi.work.WorkManager)
,
ResourceAdapter.start(javax.resource.spi.BootstrapContext)
,
ResourceAdapter.stop()
Constructor Summary | |
---|---|
ResourceAdapterFactoryBean()
|
Method Summary | |
---|---|
void |
afterPropertiesSet()
Builds the BootstrapContext and starts the ResourceAdapter with it. |
void |
destroy()
Stops the ResourceAdapter. |
javax.resource.spi.ResourceAdapter |
getObject()
|
java.lang.Class<? extends javax.resource.spi.ResourceAdapter> |
getObjectType()
|
boolean |
isSingleton()
|
void |
setBootstrapContext(javax.resource.spi.BootstrapContext bootstrapContext)
Specify the JCA BootstrapContext to use for starting the ResourceAdapter. |
void |
setResourceAdapter(javax.resource.spi.ResourceAdapter resourceAdapter)
Specify the target JCA ResourceAdapter, passed in as configured instance which hasn't been started yet. |
void |
setResourceAdapterClass(java.lang.Class resourceAdapterClass)
Specify the target JCA ResourceAdapter as class, to be instantiated with its default configuration. |
void |
setWorkManager(javax.resource.spi.work.WorkManager workManager)
Specify the JCA WorkManager to use for bootstrapping the ResourceAdapter. |
void |
setXaTerminator(javax.resource.spi.XATerminator xaTerminator)
Specify the JCA XATerminator to use for bootstrapping the ResourceAdapter. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResourceAdapterFactoryBean()
Method Detail |
---|
public void setResourceAdapterClass(java.lang.Class resourceAdapterClass)
Alternatively, specify a pre-configured ResourceAdapter instance through the "resourceAdapter" property.
setResourceAdapter(javax.resource.spi.ResourceAdapter)
public void setResourceAdapter(javax.resource.spi.ResourceAdapter resourceAdapter)
public void setBootstrapContext(javax.resource.spi.BootstrapContext bootstrapContext)
Alternatively, you can specify the individual parts (such as the JCA WorkManager) as individual references.
setWorkManager(javax.resource.spi.work.WorkManager)
,
setXaTerminator(javax.resource.spi.XATerminator)
public void setWorkManager(javax.resource.spi.work.WorkManager workManager)
setBootstrapContext(javax.resource.spi.BootstrapContext)
public void setXaTerminator(javax.resource.spi.XATerminator xaTerminator)
setBootstrapContext(javax.resource.spi.BootstrapContext)
public void afterPropertiesSet() throws javax.resource.ResourceException
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
javax.resource.ResourceException
ResourceAdapter.start(javax.resource.spi.BootstrapContext)
public javax.resource.spi.ResourceAdapter getObject()
getObject
in interface org.springframework.beans.factory.FactoryBean<javax.resource.spi.ResourceAdapter>
public java.lang.Class<? extends javax.resource.spi.ResourceAdapter> getObjectType()
getObjectType
in interface org.springframework.beans.factory.FactoryBean<javax.resource.spi.ResourceAdapter>
public boolean isSingleton()
isSingleton
in interface org.springframework.beans.factory.FactoryBean<javax.resource.spi.ResourceAdapter>
public void destroy()
destroy
in interface org.springframework.beans.factory.DisposableBean
ResourceAdapter.stop()
|
spring-tx | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |