
public class SimpleResourceAdapterRepository
extends java.lang.Object
implements org.jboss.jca.core.spi.rar.ResourceAdapterRepository
| Constructor and Description |
|---|
SimpleResourceAdapterRepository()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
org.jboss.jca.core.spi.rar.Endpoint |
getEndpoint(java.lang.String uniqueId)
Get an endpoint representation for a resource adapter
|
java.util.List<org.jboss.jca.core.spi.rar.MessageListener> |
getMessageListeners(java.lang.String uniqueId)
Get a list of message listeners supported for a resource adapter
|
javax.resource.spi.ResourceAdapter |
getResourceAdapter(java.lang.String uniqueId)
Get the resource adapter instance based on the unique id
|
java.util.Set<java.lang.String> |
getResourceAdapters()
Get the resource adapters unique ids registered
|
java.util.Set<java.lang.String> |
getResourceAdapters(java.lang.Class<?> messageListenerType)
Get the resource adapters unique ids registered which has the specified
message listener type
|
java.lang.String |
registerResourceAdapter(javax.resource.spi.ResourceAdapter ra)
Register a resource adapter
|
void |
setMetadataRepository(org.jboss.jca.core.spi.mdr.MetadataRepository v)
Set the metadata repository
|
void |
setRecoveryForResourceAdapter(java.lang.String uniqueId,
boolean isXA)
Set the recovery mode for a resource adapter
|
void |
setTransactionIntegration(org.jboss.jca.core.spi.transaction.TransactionIntegration v)
Set the transaction integration
|
java.lang.String |
toString()
String representation
|
void |
unregisterResourceAdapter(java.lang.String key)
Unregister a resource adapter
|
public SimpleResourceAdapterRepository()
public void setMetadataRepository(org.jboss.jca.core.spi.mdr.MetadataRepository v)
v - The valuepublic void setTransactionIntegration(org.jboss.jca.core.spi.transaction.TransactionIntegration v)
v - The valuepublic java.lang.String registerResourceAdapter(javax.resource.spi.ResourceAdapter ra)
registerResourceAdapter in interface org.jboss.jca.core.spi.rar.ResourceAdapterRepositoryra - The resource adapter instancepublic void unregisterResourceAdapter(java.lang.String key)
throws org.jboss.jca.core.spi.rar.NotFoundException
unregisterResourceAdapter in interface org.jboss.jca.core.spi.rar.ResourceAdapterRepositorykey - The key for the resource adapter instanceorg.jboss.jca.core.spi.rar.NotFoundException - Thrown if the unique id isn't registeredpublic javax.resource.spi.ResourceAdapter getResourceAdapter(java.lang.String uniqueId)
throws org.jboss.jca.core.spi.rar.NotFoundException
getResourceAdapter in interface org.jboss.jca.core.spi.rar.ResourceAdapterRepositoryuniqueId - An unique id that represents the deploymentorg.jboss.jca.core.spi.rar.NotFoundException - Thrown if the unique id isn't registeredpublic java.util.Set<java.lang.String> getResourceAdapters()
getResourceAdapters in interface org.jboss.jca.core.spi.rar.ResourceAdapterRepositorypublic java.util.Set<java.lang.String> getResourceAdapters(java.lang.Class<?> messageListenerType)
getResourceAdapters in interface org.jboss.jca.core.spi.rar.ResourceAdapterRepositorymessageListenerType - The message listener typepublic org.jboss.jca.core.spi.rar.Endpoint getEndpoint(java.lang.String uniqueId)
throws org.jboss.jca.core.spi.rar.NotFoundException
getEndpoint in interface org.jboss.jca.core.spi.rar.ResourceAdapterRepositoryuniqueId - An unique id that represents the deploymentorg.jboss.jca.core.spi.rar.NotFoundException - Thrown if the unique id isn't registeredpublic java.util.List<org.jboss.jca.core.spi.rar.MessageListener> getMessageListeners(java.lang.String uniqueId)
throws org.jboss.jca.core.spi.rar.NotFoundException,
java.lang.InstantiationException,
java.lang.IllegalAccessException
getMessageListeners in interface org.jboss.jca.core.spi.rar.ResourceAdapterRepositoryuniqueId - An unique id that represents the deploymentorg.jboss.jca.core.spi.rar.NotFoundException - Thrown if the unique id isn't registeredjava.lang.InstantiationException - Thrown if an object couldn't createdjava.lang.IllegalAccessException - Thrown if object access is inaccessiblepublic void setRecoveryForResourceAdapter(java.lang.String uniqueId,
boolean isXA)
throws org.jboss.jca.core.spi.rar.NotFoundException
setRecoveryForResourceAdapter in interface org.jboss.jca.core.spi.rar.ResourceAdapterRepositoryuniqueId - An unique id that represents the deploymentisXA - Is the resource adapter instance XA capableorg.jboss.jca.core.spi.rar.NotFoundException - Thrown if the unique id isn't registeredpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2014 IronJacamar (http://www.ironjacamar.org)