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