public class SimpleMetadataRepository extends java.lang.Object implements MetadataRepository
Constructor and Description |
---|
SimpleMetadataRepository()
Constructor
|
Modifier and Type | Method and Description |
---|---|
org.jboss.jca.common.api.metadata.ironjacamar.IronJacamar |
getIronJacamar(java.lang.String uniqueId)
Get the IronJacamar metadata for a resource adapter deployment
|
java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
getJndiMappings(java.lang.String uniqueId)
Get the JNDI mappings for a unique id
|
org.jboss.jca.common.api.metadata.ra.Connector |
getResourceAdapter(java.lang.String uniqueId)
Get the metadata for a resource adapter
|
java.util.Set<java.lang.String> |
getResourceAdapters()
Get the resource adapters unique ids registered
|
java.io.File |
getRoot(java.lang.String uniqueId)
Get the root for a resource adapter deployment
|
boolean |
hasJndiMappings(java.lang.String uniqueId)
Check if there exists JNDI mappings for a unique id
|
boolean |
hasResourceAdapter(java.lang.String uniqueId)
Check if there exists a resource adapter for a unique id
|
void |
registerJndiMapping(java.lang.String uniqueId,
java.lang.String clz,
java.lang.String jndi)
Register a JNDI mapping for a unique id
|
void |
registerResourceAdapter(java.lang.String uniqueId,
java.io.File root,
org.jboss.jca.common.api.metadata.ra.Connector md,
org.jboss.jca.common.api.metadata.ironjacamar.IronJacamar ijmd)
Register a resource adapter template
|
java.lang.String |
toString()
String representation
|
void |
unregisterJndiMapping(java.lang.String uniqueId,
java.lang.String clz,
java.lang.String jndi)
Unregister a JNDI mapping for a unique id
|
void |
unregisterResourceAdapter(java.lang.String uniqueId)
Unregister a resource adapter template
|
public void registerResourceAdapter(java.lang.String uniqueId, java.io.File root, org.jboss.jca.common.api.metadata.ra.Connector md, org.jboss.jca.common.api.metadata.ironjacamar.IronJacamar ijmd) throws AlreadyExistsException
registerResourceAdapter
in interface MetadataRepository
uniqueId
- An unique id that represents the deploymentroot
- The deployment rootmd
- The connector metadataijmd
- The IronJacamar metadataAlreadyExistsException
- Thrown if the unique id is already registeredpublic void unregisterResourceAdapter(java.lang.String uniqueId) throws NotFoundException
unregisterResourceAdapter
in interface MetadataRepository
uniqueId
- An unique id that represents the deploymentNotFoundException
- Thrown if the unique id isn't registeredpublic boolean hasResourceAdapter(java.lang.String uniqueId)
hasResourceAdapter
in interface MetadataRepository
uniqueId
- An unique id that represents the deploymentpublic org.jboss.jca.common.api.metadata.ra.Connector getResourceAdapter(java.lang.String uniqueId) throws NotFoundException
getResourceAdapter
in interface MetadataRepository
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 MetadataRepository
public java.io.File getRoot(java.lang.String uniqueId) throws NotFoundException
getRoot
in interface MetadataRepository
uniqueId
- An unique id that represents the deploymentNotFoundException
- Thrown if the unique id isn't registeredpublic org.jboss.jca.common.api.metadata.ironjacamar.IronJacamar getIronJacamar(java.lang.String uniqueId) throws NotFoundException
getIronJacamar
in interface MetadataRepository
uniqueId
- An unique id that represents the deploymentNotFoundException
- Thrown if the unique id isn't registeredpublic void registerJndiMapping(java.lang.String uniqueId, java.lang.String clz, java.lang.String jndi)
registerJndiMapping
in interface MetadataRepository
uniqueId
- An unique id that represents the deploymentclz
- The fully qualified class namejndi
- The JNDI namepublic void unregisterJndiMapping(java.lang.String uniqueId, java.lang.String clz, java.lang.String jndi) throws NotFoundException
unregisterJndiMapping
in interface MetadataRepository
uniqueId
- An unique id that represents the deploymentclz
- The fully qualified class namejndi
- The JNDI nameNotFoundException
- Thrown if the unique id isn't registeredpublic boolean hasJndiMappings(java.lang.String uniqueId)
hasJndiMappings
in interface MetadataRepository
uniqueId
- An unique id that represents the deploymentpublic java.util.Map<java.lang.String,java.util.List<java.lang.String>> getJndiMappings(java.lang.String uniqueId) throws NotFoundException
getJndiMappings
in interface MetadataRepository
uniqueId
- An unique id that represents the deploymentNotFoundException
- Thrown if the unique id isn't registeredpublic java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2013 IronJacamar (http://www.ironjacamar.org)