|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.shrinkwrap.descriptor.impl.jboss51.ResourceManagerTypeImpl<T>
public class ResourceManagerTypeImpl<T>
This class implements the resource-managerType
xsd type
Original Documentation:
The resource-manager element is used to provide a mapping between the "xml
name" of a resource (res-name) and its "runtime jndi name" (res-jndi-name or res-url
according to the type of the resource). If it is not provided, and if the type of the
resource is javax.sql.DataSource, jboss will look for a javax.sql.DataSource in the jndi
tree. See resource-managers. Used in: resource-managers
Constructor Summary | |
---|---|
ResourceManagerTypeImpl(T t,
java.lang.String nodeName,
org.jboss.shrinkwrap.descriptor.spi.Node node)
|
|
ResourceManagerTypeImpl(T t,
java.lang.String nodeName,
org.jboss.shrinkwrap.descriptor.spi.Node node,
org.jboss.shrinkwrap.descriptor.spi.Node childNode)
|
Method Summary | |
---|---|
java.util.List<java.lang.String> |
getDescriptionList()
Returns all description elements |
java.lang.String |
getResClass()
Returns the res-class element |
java.lang.String |
getResJndiName()
Returns the res-jndi-name element |
java.lang.String |
getResName()
Returns the res-name element |
java.lang.String |
getResUrl()
Returns the res-url element |
ResourceManagerType<T> |
removeAllDescription()
Removes the description element |
ResourceManagerType<T> |
removeResClass()
Removes the res-class attribute |
ResourceManagerType<T> |
removeResJndiName()
Removes the res-jndi-name element |
ResourceManagerType<T> |
removeResName()
Removes the res-name element |
ResourceManagerType<T> |
removeResUrl()
Removes the res-url element |
ResourceManagerType<T> |
setDescription(java.lang.String description)
Creates a new description element |
ResourceManagerType<T> |
setDescriptionList(java.lang.String... values)
Creates for all String objects representing description elements,
a new description element |
ResourceManagerType<T> |
setResClass(java.lang.String resClass)
Sets the res-class attribute |
ResourceManagerType<T> |
setResJndiName(java.lang.String resJndiName)
If not already created, a new res-jndi-name element with the given value will be created. |
ResourceManagerType<T> |
setResName(java.lang.String resName)
If not already created, a new res-name element with the given value will be created. |
ResourceManagerType<T> |
setResUrl(java.lang.String resUrl)
If not already created, a new res-url element with the given value will be created. |
T |
up()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResourceManagerTypeImpl(T t, java.lang.String nodeName, org.jboss.shrinkwrap.descriptor.spi.Node node)
public ResourceManagerTypeImpl(T t, java.lang.String nodeName, org.jboss.shrinkwrap.descriptor.spi.Node node, org.jboss.shrinkwrap.descriptor.spi.Node childNode)
Method Detail |
---|
public T up()
up
in interface org.jboss.shrinkwrap.descriptor.api.Child<T>
public ResourceManagerType<T> setDescription(java.lang.String description)
description
element
setDescription
in interface ResourceManagerType<T>
ResourceManagerType
public ResourceManagerType<T> setDescriptionList(java.lang.String... values)
description
elements,
a new description
element
setDescriptionList
in interface ResourceManagerType<T>
list
- of description
objects
ResourceManagerType
public ResourceManagerType<T> removeAllDescription()
description
element
removeAllDescription
in interface ResourceManagerType<T>
ResourceManagerType
public java.util.List<java.lang.String> getDescriptionList()
description
elements
getDescriptionList
in interface ResourceManagerType<T>
description
public ResourceManagerType<T> setResName(java.lang.String resName)
res-name
element with the given value will be created.
Otherwise, the existing res-name
element will be updated with the given value.
setResName
in interface ResourceManagerType<T>
ResourceManagerType
public ResourceManagerType<T> removeResName()
res-name
element
removeResName
in interface ResourceManagerType<T>
ResourceManagerType
public java.lang.String getResName()
res-name
element
getResName
in interface ResourceManagerType<T>
res-name
public ResourceManagerType<T> setResJndiName(java.lang.String resJndiName)
res-jndi-name
element with the given value will be created.
Otherwise, the existing res-jndi-name
element will be updated with the given value.
setResJndiName
in interface ResourceManagerType<T>
ResourceManagerType
public ResourceManagerType<T> removeResJndiName()
res-jndi-name
element
removeResJndiName
in interface ResourceManagerType<T>
ResourceManagerType
public java.lang.String getResJndiName()
res-jndi-name
element
getResJndiName
in interface ResourceManagerType<T>
res-jndi-name
public ResourceManagerType<T> setResUrl(java.lang.String resUrl)
res-url
element with the given value will be created.
Otherwise, the existing res-url
element will be updated with the given value.
setResUrl
in interface ResourceManagerType<T>
ResourceManagerType
public ResourceManagerType<T> removeResUrl()
res-url
element
removeResUrl
in interface ResourceManagerType<T>
ResourceManagerType
public java.lang.String getResUrl()
res-url
element
getResUrl
in interface ResourceManagerType<T>
res-url
public ResourceManagerType<T> setResClass(java.lang.String resClass)
res-class
attribute
setResClass
in interface ResourceManagerType<T>
resClass
- the value for the attribute res-class
ResourceManagerType
public ResourceManagerType<T> removeResClass()
res-class
attribute
removeResClass
in interface ResourceManagerType<T>
ResourceManagerType
public java.lang.String getResClass()
res-class
element
getResClass
in interface ResourceManagerType<T>
res-class
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |