
public class SimpleMetadataRepository
extends java.lang.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.resourceadapter.Activation |
getActivation(java.lang.String uniqueId)
Get the Activation 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.spec.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.spec.Connector md,
org.jboss.jca.common.api.metadata.resourceadapter.Activation a)
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.spec.Connector md,
org.jboss.jca.common.api.metadata.resourceadapter.Activation a)
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 metadataa - The Activation metadataorg.jboss.jca.core.spi.mdr.AlreadyExistsException - Thrown if the unique id is already registeredpublic void unregisterResourceAdapter(java.lang.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(java.lang.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.spec.Connector getResourceAdapter(java.lang.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 java.util.Set<java.lang.String> getResourceAdapters()
getResourceAdapters in interface org.jboss.jca.core.spi.mdr.MetadataRepositorypublic java.io.File getRoot(java.lang.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.resourceadapter.Activation getActivation(java.lang.String uniqueId)
throws org.jboss.jca.core.spi.mdr.NotFoundException
getActivation 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(java.lang.String uniqueId,
java.lang.String clz,
java.lang.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(java.lang.String uniqueId,
java.lang.String clz,
java.lang.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(java.lang.String uniqueId)
hasJndiMappings in interface org.jboss.jca.core.spi.mdr.MetadataRepositoryuniqueId - 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 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 registeredpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2014 IronJacamar (http://www.ironjacamar.org)