1 23 24 29 30 package com.sun.enterprise.resource; 31 32 import com.sun.enterprise.Switch; 33 import com.sun.enterprise.config.serverbeans.ElementProperty; 34 35 39 public abstract class GlobalResourceDeployer { 40 41 48 Switch getAppServerSwitchObject() { 49 return Switch.getSwitch(); 50 } 51 52 58 String [] getPropNamesAsStrArr(ElementProperty [] props) { 59 if (props == null) { 60 return null; 61 } else { 62 String [] result = new String [props.length]; 63 for(int i = 0; i < props.length; i++) { 64 result[i] = props[i].getName(); 65 } 66 return result; 67 } 68 } 69 70 76 String [] getPropValuesAsStrArr(ElementProperty [] props) { 77 if (props == null) { 78 return null; 79 } else { 80 String [] result = new String [props.length]; 81 for(int i = 0; i < props.length; i++) { 82 result[i] = props[i].getValue(); 83 } 84 return result; 85 } 86 } 87 88 } 89 | Popular Tags |