|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jboss.jca.deployers.fungal.AbstractResourceAdapterDeployer
public abstract class AbstractResourceAdapterDeployer

An abstract resource adapter deployer which contains common functionality for all resource adapter archive based deployers.
| Method Summary | |
|---|---|
protected void |
associateResourceAdapter(javax.resource.spi.ResourceAdapter resourceAdapter,
Object object)
Associate resource adapter with ojects if they implement ResourceAdapterAssociation |
protected String[] |
bindConnectionFactory(URL url,
String deployment,
Object cf)
Bind connection factory into JNDI |
protected String[] |
bindConnectionFactory(URL url,
String deployment,
Object cf,
String jndi)
Bind connection factory into JNDI |
protected org.jboss.jca.core.connectionmanager.pool.api.PoolConfiguration |
createPoolConfiguration(org.jboss.jca.common.api.metadata.common.CommonPool pp,
org.jboss.jca.common.api.metadata.common.CommonTimeOut tp,
org.jboss.jca.common.api.metadata.common.CommonValidation vp)
Create an instance of the pool configuration based on the input |
protected org.jboss.jca.common.api.metadata.common.CommonConnDef |
findConnectionDefinition(String clz,
List<org.jboss.jca.common.api.metadata.common.CommonConnDef> defs)
Find the connection factory for a managed connection factory |
RAConfiguration |
getConfiguration()
Get the configuration |
protected URL[] |
getUrls(File directory)
Get the URLs for the directory and all libraries located in the directory |
protected boolean |
hasFailuresLevel(Collection<org.jboss.jca.validator.Failure> failures,
int severity)
Cehck for failures at a certain level |
protected Object |
initAndInject(String className,
List<? extends org.jboss.jca.common.api.metadata.ra.ConfigProperty> configs,
ClassLoader cl)
Initialize and inject configuration properties |
void |
setConfiguration(RAConfiguration value)
Set the configuration |
void |
start()
Start |
protected void |
startContext(javax.resource.spi.ResourceAdapter resourceAdapter,
String bootstrapIdentifier)
Start the resource adapter |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public void setConfiguration(RAConfiguration value)
value - The valuepublic RAConfiguration getConfiguration()
protected boolean hasFailuresLevel(Collection<org.jboss.jca.validator.Failure> failures,
int severity)
failures - The failuresseverity - The level
protected void startContext(javax.resource.spi.ResourceAdapter resourceAdapter,
String bootstrapIdentifier)
throws com.github.fungal.spi.deployers.DeployException
resourceAdapter - The resource adapterbootstrapIdentifier - The bootstrap context identifier; may be null
com.github.fungal.spi.deployers.DeployException - Thrown if the resource adapter cant be started
protected void associateResourceAdapter(javax.resource.spi.ResourceAdapter resourceAdapter,
Object object)
throws com.github.fungal.spi.deployers.DeployException
resourceAdapter - The resource adapterobject - The of possible association object
com.github.fungal.spi.deployers.DeployException - Thrown if the resource adapter cant be started
protected Object initAndInject(String className,
List<? extends org.jboss.jca.common.api.metadata.ra.ConfigProperty> configs,
ClassLoader cl)
throws com.github.fungal.spi.deployers.DeployException
className - The fully qualified class nameconfigs - The configuration propertiescl - The class loader
com.github.fungal.spi.deployers.DeployException - Thrown if the object cant be initialized
protected URL[] getUrls(File directory)
throws MalformedURLException,
IOException
directory - The directory
MalformedURLException - MalformedURLException
IOException - IOException
protected String[] bindConnectionFactory(URL url,
String deployment,
Object cf)
throws Throwable
url - The deployment URLdeployment - The deployment namecf - The connection factory
Throwable - Thrown if an error occurs
protected String[] bindConnectionFactory(URL url,
String deployment,
Object cf,
String jndi)
throws Throwable
url - The deployment URLdeployment - The deployment namecf - The connection factoryjndi - The JNDI name
Throwable - Thrown if an error occurs
protected org.jboss.jca.common.api.metadata.common.CommonConnDef findConnectionDefinition(String clz,
List<org.jboss.jca.common.api.metadata.common.CommonConnDef> defs)
clz - The fully quilified class name for the managed connection factorydefs - The connection definitions
null if none could be found
protected org.jboss.jca.core.connectionmanager.pool.api.PoolConfiguration createPoolConfiguration(org.jboss.jca.common.api.metadata.common.CommonPool pp,
org.jboss.jca.common.api.metadata.common.CommonTimeOut tp,
org.jboss.jca.common.api.metadata.common.CommonValidation vp)
pp - The pool parameterstp - The timeout parametersvp - The validation parameters
public void start()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||