1 23 24 package com.sun.enterprise.admin.common; 25 26 import java.io.Serializable ; 27 import java.util.Properties ; 28 import java.util.Set ; 29 import java.util.Iterator ; 30 31 import com.sun.enterprise.admin.util.ArgChecker; 32 import com.sun.enterprise.admin.util.StringValidator; 33 34 35 import com.sun.enterprise.repository.ResourceProperty; 36 42 43 public class ResourceAdapterInfo implements Serializable { 44 45 private String jndiName; 46 47 private Properties attrs; 48 49 50 private static final String DEBUG_LEVEL = "debugLevel"; 51 private static final String MAX_POOL_SIZE = "maxPoolSize"; 52 private static final String STEADY_POOL_SIZE = "steadyPoolSize"; 53 private static final String MAX_WAIT = "maxWait"; 54 private static final String UNUSED_MAX_LIFE = "unusedMaxLife"; 55 56 public ResourceAdapterInfo (String jndiName) { 57 } 58 59 60 private void convertAdapterProps(Set props) { 61 if (props != null) { 62 Iterator itr = props.iterator(); 63 while (itr.hasNext()) { 64 ResourceProperty prop = (ResourceProperty)itr.next(); 65 attrs.setProperty(prop.getName(),prop.getValue().toString()); 66 } 67 } 68 } 69 public String getJndiName() { 70 return jndiName; 71 } 72 73 74 public Properties getAttrs() { 75 return attrs; 76 } 77 78 public String toString() { 79 return jndiName + " " + attrs; 80 } 81 } 82 | Popular Tags |