FileDocCategorySizeDatePackage
GlobalResourceDeployer.javaAPI DocGlassfish v2 API3790Fri May 04 22:35:14 BST 2007com.sun.enterprise.resource

GlobalResourceDeployer

public abstract class GlobalResourceDeployer extends Object
author
Rob Ruyak

Fields Summary
Constructors Summary
Methods Summary
com.sun.enterprise.SwitchgetAppServerSwitchObject()
Gets the application server Switch object for accessing env. objects. This is an internal method created to eliminate dependency for other methods. This enables one to develop unit tests for this class.

return
Switch singleton containing appserver runtime objects.

        return Switch.getSwitch();
    
java.lang.String[]getPropNamesAsStrArr(com.sun.enterprise.config.serverbeans.ElementProperty[] props)
Return an the element property names as an array of strings.

param
props An array of ElementProperty objects.
return
The names within the element as an array of strings.

        if (props == null) { 
            return null; 
        } else {
            String [] result = new String[props.length];
            for(int i = 0; i < props.length; i++) {
                result[i] = props[i].getName();
            }
            return result;
        }
    
java.lang.String[]getPropValuesAsStrArr(com.sun.enterprise.config.serverbeans.ElementProperty[] props)
Return an the element property values as an array of strings.

param
props An array of ElementProperty objects.
return
The values within the element as an array of strings.

        if (props == null) { 
            return null; 
        } else {
            String [] result = new String[props.length];
            for(int i = 0; i < props.length; i++) {
                result[i] = props[i].getValue();
            }
            return result;
        }