FileDocCategorySizeDatePackage
MBeansDescriptions.javaAPI DocGlassfish v2 API23203Fri May 04 22:34:08 BST 2007com.sun.enterprise.admin.server.core.mbean.config.naming

MBeansDescriptions

public class MBeansDescriptions extends Object
Provides naming MBeans descriptions for ConfigMbeans

Fields Summary
static final String
CONFIG_MBEANS_BASE_CLASS_PREFIX
static final String
DOMAIN_PROLOG
static final char
PATTERNS_SEPARATOR
static final int
MODE_CONFIG
static final int
MODE_MONITOR
static final Object[]
mbean_descriptions
Constructors Summary
Methods Summary
private static java.lang.IntegerMODE(int type)

       return new Integer(type);    
    
static java.lang.StringObjectNamePairs(java.lang.String name1, java.lang.String value1, java.lang.String name2, java.lang.String value2)


    

       
    //*************************************************************************************
             
    
        return ObjectNamePairs(new String[]{name1, value1, name2, value2});
    
static java.lang.StringObjectNamePairs(java.lang.String name1, java.lang.String value1, java.lang.String name2, java.lang.String value2, java.lang.String name3, java.lang.String value3)

        return ObjectNamePairs(new String[]{name1, value1, name2, value2, name3, value3});
    
static java.lang.StringObjectNamePairs(java.lang.String name1, java.lang.String value1, java.lang.String name2, java.lang.String value2, java.lang.String name3, java.lang.String value3, java.lang.String name4, java.lang.String value4)

        return ObjectNamePairs(new String[]{name1, value1, name2, value2, name3, value3, name4, value4});
    
static java.lang.StringObjectNamePairs(java.lang.String name1, java.lang.String value1, java.lang.String name2, java.lang.String value2, java.lang.String name3, java.lang.String value3, java.lang.String name4, java.lang.String value4, java.lang.String name5, java.lang.String value5)

        return ObjectNamePairs(new String[]{name1, value1, name2, value2, name3, value3, name4, value4, name5, value5});
    
static java.lang.StringObjectNamePairs(java.lang.String[] pairs)

        String str = null;
        for(int i=0; i<pairs.length-1; i = i+2)
            if(i==0)
               str = DOMAIN_PROLOG + pairs[i] + "=" + pairs[i+1];
            else
               str = str + "," + pairs[i] + "=" + pairs[i+1];
//System.out.println("+++++++++++++++++++++ objname="+str);            
        return str;
    
private static java.lang.StringXPATH_TO_MASK(java.lang.String xpath)

        char[] chrs =  xpath.toCharArray();
        char[] newchrs = new char[chrs.length*2];
        int j = 0;
        for(int i=0; i<chrs.length; i++)
        {
            newchrs[j++] = chrs[i];
            if(chrs[i]=='\'")
                newchrs[j++] = '\'";
        }
        return String.valueOf(newchrs, 0, j);