1 23 24 package com.sun.enterprise.deployment.runtime.common; 25 26 import com.sun.enterprise.deployment.runtime.RuntimeDescriptor; 27 28 35 public class ResourceRef extends RuntimeDescriptor 36 { 37 static public final String RES_REF_NAME = "ResRefName"; static public final String JNDI_NAME = "JndiName"; static public final String DEFAULT_RESOURCE_PRINCIPAL = "DefaultResourcePrincipal"; 41 public void setResRefName(String value) 43 { 44 this.setValue(RES_REF_NAME, value); 45 } 46 47 public String getResRefName() 49 { 50 return (String )this.getValue(RES_REF_NAME); 51 } 52 53 public void setJndiName(String value) 55 { 56 this.setValue(JNDI_NAME, value); 57 } 58 59 public String getJndiName() 61 { 62 return (String )this.getValue(JNDI_NAME); 63 } 64 65 public void setDefaultResourcePrincipal(DefaultResourcePrincipal value) 67 { 68 this.setValue(DEFAULT_RESOURCE_PRINCIPAL, value); 69 } 70 71 public DefaultResourcePrincipal getDefaultResourcePrincipal() 73 { 74 return (DefaultResourcePrincipal)this.getValue(DEFAULT_RESOURCE_PRINCIPAL); 75 } 76 77 public boolean verify() 79 { 80 return true; 81 } 82 } 83 | Popular Tags |