public class SimpleResourceAdapterRepository extends java.lang.Object implements ResourceAdapterRepository
Constructor and Description |
---|
SimpleResourceAdapterRepository()
Constructor
|
Modifier and Type | Method and Description |
---|---|
Endpoint |
getEndpoint(java.lang.String uniqueId)
Get an endpoint representation for a resource adapter
|
java.util.List<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(MetadataRepository v)
Set the metadata repository
|
void |
setTransactionIntegration(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(MetadataRepository v)
v
- The valuepublic void setTransactionIntegration(TransactionIntegration v)
v
- The valuepublic java.lang.String registerResourceAdapter(javax.resource.spi.ResourceAdapter ra)
registerResourceAdapter
in interface ResourceAdapterRepository
ra
- The resource adapter instancepublic void unregisterResourceAdapter(java.lang.String key) throws NotFoundException
unregisterResourceAdapter
in interface ResourceAdapterRepository
key
- The key for the resource adapter instanceNotFoundException
- Thrown if the unique id isn't registeredpublic javax.resource.spi.ResourceAdapter getResourceAdapter(java.lang.String uniqueId) throws NotFoundException
getResourceAdapter
in interface ResourceAdapterRepository
uniqueId
- An unique id that represents the deploymentNotFoundException
- Thrown if the unique id isn't registeredpublic java.util.Set<java.lang.String> getResourceAdapters()
getResourceAdapters
in interface ResourceAdapterRepository
public java.util.Set<java.lang.String> getResourceAdapters(java.lang.Class<?> messageListenerType)
getResourceAdapters
in interface ResourceAdapterRepository
messageListenerType
- The message listener typepublic Endpoint getEndpoint(java.lang.String uniqueId) throws NotFoundException
getEndpoint
in interface ResourceAdapterRepository
uniqueId
- An unique id that represents the deploymentNotFoundException
- Thrown if the unique id isn't registeredpublic java.util.List<MessageListener> getMessageListeners(java.lang.String uniqueId) throws NotFoundException, java.lang.InstantiationException, java.lang.IllegalAccessException
getMessageListeners
in interface ResourceAdapterRepository
uniqueId
- An unique id that represents the deploymentNotFoundException
- 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 java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2013 IronJacamar (http://www.ironjacamar.org)