public class ResourceRef extends Object
resource-ref
element in application.xml
file.
<resource-ref> <res-ref-name>jdbc/myDs</res-ref-name> <res-type>javax.sql.DataSource</res-type> <res-auth>Container</res-auth> </resource-ref>or
<resource-ref> <res-ref-name>jdbc/myDs</res-ref-name> <res-type>javax.sql.DataSource</res-type> <lookup-name>jdbc/lookup/myDs</lookup-name> </resource-ref>
Constructor and Description |
---|
ResourceRef(String name,
String type,
String auth,
String lookupName) |
Modifier and Type | Method and Description |
---|---|
void |
appendResourceRefEntry(org.codehaus.plexus.util.xml.XMLWriter writer)
Appends the
XML representation of this env-entry. |
String |
getAuth() |
String |
getLookupName() |
String |
getName() |
String |
getType() |
void |
setAuth(String auth) |
void |
setLookupName(String lookupName) |
void |
setName(String name) |
void |
setType(String type) |
public void appendResourceRefEntry(org.codehaus.plexus.util.xml.XMLWriter writer)
XML
representation of this env-entry.writer
- the writer to usepublic String getLookupName()
lookupName
public void setLookupName(String lookupName)
lookupName
- lookupName
Copyright © 2002–2022 The Apache Software Foundation. All rights reserved.