public interface ResourceAdapterRepository
Modifier and Type | Method and Description |
---|---|
Endpoint |
getEndpoint(String uniqueId)
Get an endpoint representation for a resource adapter
|
List<MessageListener> |
getMessageListeners(String uniqueId)
Get a list of message listeners supported for a resource adapter
|
javax.resource.spi.ResourceAdapter |
getResourceAdapter(String uniqueId)
Get the resource adapter instance based on the unique id
|
Set<String> |
getResourceAdapters()
Get the resource adapters unique ids registered
|
Set<String> |
getResourceAdapters(Class<?> messageListenerType)
Get the resource adapters unique ids registered which has the specified
message listener type
|
String |
registerResourceAdapter(javax.resource.spi.ResourceAdapter ra)
Register a resource adapter
|
void |
setRecoveryForResourceAdapter(String uniqueId,
boolean isXA)
Set the recovery mode for a resource adapter
|
void |
unregisterResourceAdapter(String key)
Unregister a resource adapter
|
String registerResourceAdapter(javax.resource.spi.ResourceAdapter ra)
ra
- The resource adapter instancevoid unregisterResourceAdapter(String key) throws NotFoundException
key
- The key for the resource adapter instanceNotFoundException
- Thrown if the unique id isn't registeredjavax.resource.spi.ResourceAdapter getResourceAdapter(String uniqueId) throws NotFoundException
uniqueId
- An unique id that represents the deploymentNotFoundException
- Thrown if the unique id isn't registeredSet<String> getResourceAdapters()
Set<String> getResourceAdapters(Class<?> messageListenerType)
messageListenerType
- The message listener typeEndpoint getEndpoint(String uniqueId) throws NotFoundException
uniqueId
- An unique id that represents the deploymentNotFoundException
- Thrown if the unique id isn't registeredList<MessageListener> getMessageListeners(String uniqueId) throws NotFoundException, InstantiationException, IllegalAccessException
uniqueId
- An unique id that represents the deploymentNotFoundException
- Thrown if the unique id isn't registeredInstantiationException
- Thrown if an object couldn't createdIllegalAccessException
- Thrown if object access is inaccessiblevoid setRecoveryForResourceAdapter(String uniqueId, boolean isXA) throws NotFoundException
uniqueId
- An unique id that represents the deploymentisXA
- Is the resource adapter instance XA capableNotFoundException
- Thrown if the unique id isn't registeredCopyright © 2021 JBoss by Red Hat. All rights reserved.