Class ResourceRef

java.lang.Object
org.apache.maven.plugins.ear.ResourceRef

public class ResourceRef extends Object
Representation of 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>
 
Since:
3.0.0
Author:
Karl Heinz Marbaise
  • Constructor Details

    • ResourceRef

      public ResourceRef(String name, String type, String auth, String lookupName)
      Parameters:
      name - The res-ref-name.
      type - The res-type
      auth - The res-auth.
      lookupName - The lookup-name.
  • Method Details

    • appendResourceRefEntry

      public void appendResourceRefEntry(org.codehaus.plexus.util.xml.XMLWriter writer)
      Appends the XML representation of this env-entry.
      Parameters:
      writer - the writer to use
    • getName

      public String getName()
      Returns:
      name
    • setName

      public void setName(String name)
      Parameters:
      name - name
    • getType

      public String getType()
      Returns:
      type
    • setType

      public void setType(String type)
      Parameters:
      type - type
    • getAuth

      public String getAuth()
      Returns:
      auth
    • setAuth

      public void setAuth(String auth)
      Parameters:
      auth - auth
    • getLookupName

      public String getLookupName()
      Returns:
      lookupName
    • setLookupName

      public void setLookupName(String lookupName)
      Parameters:
      lookupName - lookupName