1 23 24 29 30 package com.sun.enterprise.deployment.runtime.connector; 31 32 import com.sun.enterprise.deployment.runtime.RuntimeDescriptor; 33 import com.sun.enterprise.deployment.NameValuePairDescriptor; 34 35 42 public class ResourceAdapter extends RuntimeDescriptor 43 { 44 static public final String DESCRIPTION = "Description"; static public final String PROPERTY = "PropertyElement"; 47 static public final String JNDI_NAME = "JndiName"; 48 static public final String MAX_POOL_SIZE = "MaxPoolSize"; 49 static public final String STEADY_POOL_SIZE = "SteadyPoolSize"; 50 static public final String MAX_WAIT_TIME_IN_MILLIS = "MaxWaitTimeInMillis"; 51 static public final String IDLE_TIMEOUT_IN_SECONDS = "IdleTimeoutInSeconds"; 52 53 public void setPropertyElement(int index, NameValuePairDescriptor value) 55 { 56 this.setValue(PROPERTY, index, value); 57 } 58 59 public boolean isPropertyElement(int index) 61 { 62 NameValuePairDescriptor ret = (NameValuePairDescriptor)this.getValue(PROPERTY, index); 63 return ret != null; 64 } 65 66 public void setPropertyElement(NameValuePairDescriptor[] values) 68 { 69 this.setValues(PROPERTY, values); 70 } 71 72 public NameValuePairDescriptor[] getPropertyElement() 74 { 75 return (NameValuePairDescriptor[])this.getValues(PROPERTY); 76 } 77 78 public int sizePropertyElement() 80 { 81 return this.size(PROPERTY); 82 } 83 84 public int addPropertyElement(NameValuePairDescriptor value) 86 { 87 return this.addValue(PROPERTY, value); 88 } 89 90 public int removePropertyElement(NameValuePairDescriptor value) 95 { 96 return this.removeValue(PROPERTY, value); 97 } 98 99 public void removePropertyElement(int index) 103 { 104 this.removeValue(PROPERTY, index); 105 } 106 107 public boolean verify() 109 { 110 return true; 111 } 112 } 113 | Popular Tags |