All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.teatrove.teaservlet.TeaServletInvocationStats$StatsBeanInfo Maven / Gradle / Ivy

Go to download

The TeaServlet is a template engine that works with the Tea template language.

The newest version!
/*
 * TeaServletInvocationStats$StatsBeanInfo.java
 *
 * BeanDoc generated on Fri Mar 16 at 12:39:55 EDT 02012.
 * 
 * See TeaServletInvocationStats.Stats.java for copyright information.
 */

package org.teatrove.teaservlet;

import java.beans.*;
import java.lang.reflect.*;

import java.util.Vector;

/**
 * The BeanInfo class describing TeaServletInvocationStats.Stats. 
 *
 * @author BeanDoc
 */
public class TeaServletInvocationStats$StatsBeanInfo extends SimpleBeanInfo {

    /** BeanDescriptor returned by the getBeanDescriptor 
        method */
    private BeanDescriptor mBeanDescriptor;

    /** BeanInfo array returned by the getAdditionalBeanInfo 
        method */
    private BeanInfo[] mAdditionalBeanInfo;

    /** MethodDescriptor array returned by the 
        getMethodDescriptors method */
    private MethodDescriptor[] mMethodDescriptors;

    /** PropertyDescriptor array returned by the 
        getPropertyDescriptors method */
    private PropertyDescriptor[] mPropertyDescriptors;
    
    /** The index of the default property */
    private int mDefaultPropertyIndex;


    /**
     * Creates a new TeaServletInvocationStats$StatsBeanInfo.
     */
    public TeaServletInvocationStats$StatsBeanInfo() {        
                          
        mDefaultPropertyIndex = -1;
        
    }
     
    /**
     * Returns a BeanDescriptor that describes TeaServletInvocationStats.Stats.
     */    
    public BeanDescriptor getBeanDescriptor() {
        
        if (mBeanDescriptor == null) {
            mBeanDescriptor = createBeanDescriptor();       
        }

        return mBeanDescriptor;
    }

    /**
     * Returns a BeanInfo array containing BeanInfo object's for:
* java.lang.Object
*/ public BeanInfo[] getAdditionalBeanInfo() { if (mAdditionalBeanInfo == null) { mAdditionalBeanInfo = createAdditionalBeanInfo(); } return mAdditionalBeanInfo; } /** * Returns MethodDescriptors that describe the methods of * TeaServletInvocationStats.Stats. Call the * getAdditionalBeanInfo method to get the * method descriptors of the superclass and interfaces. */ public MethodDescriptor[] getMethodDescriptors() { if (mMethodDescriptors == null) { mMethodDescriptors = createMethodDescriptors(); } return mMethodDescriptors; } /** * Returns a PropertyDescriptor array that describes the properties of * TeaServletInvocationStats.Stats. */ public PropertyDescriptor[] getPropertyDescriptors() { if (mPropertyDescriptors == null) { mPropertyDescriptors = createPropertyDescriptors(); } return mPropertyDescriptors; } /** * Return the index of the default property. */ public int getDefaultPropertyIndex() { return mDefaultPropertyIndex; } // // Non-public interface // // Create the bean descriptor for the bean. private BeanDescriptor createBeanDescriptor() { BeanDescriptor bd = new BeanDescriptor(TeaServletInvocationStats.Stats.class); bd.setName("TeaServletInvocationStats.Stats"); bd.setDisplayName("TeaServletInvocationStats.Stats"); bd.setShortDescription(""); bd.setValue("BeanDoc", "4.1.2"); return bd; } // Create the additional bean info objects for the bean. private BeanInfo[] createAdditionalBeanInfo() { Vector bis = new Vector(); BeanInfo bi = null; bi = null; try { // Get the BeanInfo for the superclass bi = Introspector.getBeanInfo(java.lang.Object.class); } catch (Throwable t) { t.printStackTrace(); } if (bi != null) { bis.addElement(bi); } BeanInfo[] additionalBeanInfo = null; if (bis.size() > 0) { additionalBeanInfo = new BeanInfo[bis.size()]; bis.copyInto(additionalBeanInfo); } return additionalBeanInfo; } // Create the method descriptor objects for the bean. private MethodDescriptor[] createMethodDescriptors() { Class[] paramTypes = null; int paramIndex = 0; ParameterDescriptor[] paramDescriptors = null; ParameterDescriptor pd = null; Vector mds = new Vector(); Method m = null; MethodDescriptor md = null; // // addCumServiceTime // paramTypes = new Class[1]; paramDescriptors = new ParameterDescriptor[1]; paramIndex = 0; paramTypes[paramIndex] = long.class; pd = new ParameterDescriptor(); pd.setName("elapsedTime"); pd.setDisplayName("long"); paramDescriptors[paramIndex] = pd; paramIndex++; m = null; try { m = TeaServletInvocationStats.Stats.class.getMethod("addCumServiceTime", paramTypes); } catch (Throwable t) { t.printStackTrace(); } if (m != null) { md = null; if (paramDescriptors != null) { md = new MethodDescriptor(m, paramDescriptors); } else { md = new MethodDescriptor(m); } md.setName("addCumServiceTime"); md.setDisplayName("addCumServiceTime"); mds.addElement(md); } // // compareTo // paramTypes = new Class[1]; paramDescriptors = new ParameterDescriptor[1]; paramIndex = 0; paramTypes[paramIndex] = java.lang.Object.class; pd = new ParameterDescriptor(); pd.setName("o"); pd.setDisplayName("java.lang.Object"); paramDescriptors[paramIndex] = pd; paramIndex++; m = null; try { m = TeaServletInvocationStats.Stats.class.getMethod("compareTo", paramTypes); } catch (Throwable t) { t.printStackTrace(); } if (m != null) { md = null; if (paramDescriptors != null) { md = new MethodDescriptor(m, paramDescriptors); } else { md = new MethodDescriptor(m); } md.setName("compareTo"); md.setDisplayName("compareTo"); mds.addElement(md); } // // equals // paramTypes = new Class[1]; paramDescriptors = new ParameterDescriptor[1]; paramIndex = 0; paramTypes[paramIndex] = java.lang.Object.class; pd = new ParameterDescriptor(); pd.setName("o"); pd.setDisplayName("java.lang.Object"); paramDescriptors[paramIndex] = pd; paramIndex++; m = null; try { m = TeaServletInvocationStats.Stats.class.getMethod("equals", paramTypes); } catch (Throwable t) { t.printStackTrace(); } if (m != null) { md = null; if (paramDescriptors != null) { md = new MethodDescriptor(m, paramDescriptors); } else { md = new MethodDescriptor(m); } md.setName("equals"); md.setDisplayName("equals"); mds.addElement(md); } // // getAverageServiceDuration // paramTypes = new Class[0]; paramDescriptors = new ParameterDescriptor[0]; paramIndex = 0; m = null; try { m = TeaServletInvocationStats.Stats.class.getMethod("getAverageServiceDuration", paramTypes); } catch (Throwable t) { t.printStackTrace(); } if (m != null) { md = null; if (paramDescriptors != null) { md = new MethodDescriptor(m, paramDescriptors); } else { md = new MethodDescriptor(m); } md.setName("getAverageServiceDuration"); md.setDisplayName("getAverageServiceDuration"); mds.addElement(md); } // // getCallee // paramTypes = new Class[0]; paramDescriptors = new ParameterDescriptor[0]; paramIndex = 0; m = null; try { m = TeaServletInvocationStats.Stats.class.getMethod("getCallee", paramTypes); } catch (Throwable t) { t.printStackTrace(); } if (m != null) { md = null; if (paramDescriptors != null) { md = new MethodDescriptor(m, paramDescriptors); } else { md = new MethodDescriptor(m); } md.setName("getCallee"); md.setDisplayName("getCallee"); mds.addElement(md); } // // getCaller // paramTypes = new Class[0]; paramDescriptors = new ParameterDescriptor[0]; paramIndex = 0; m = null; try { m = TeaServletInvocationStats.Stats.class.getMethod("getCaller", paramTypes); } catch (Throwable t) { t.printStackTrace(); } if (m != null) { md = null; if (paramDescriptors != null) { md = new MethodDescriptor(m, paramDescriptors); } else { md = new MethodDescriptor(m); } md.setName("getCaller"); md.setDisplayName("getCaller"); mds.addElement(md); } // // getCumServiceTime // paramTypes = new Class[0]; paramDescriptors = new ParameterDescriptor[0]; paramIndex = 0; m = null; try { m = TeaServletInvocationStats.Stats.class.getMethod("getCumServiceTime", paramTypes); } catch (Throwable t) { t.printStackTrace(); } if (m != null) { md = null; if (paramDescriptors != null) { md = new MethodDescriptor(m, paramDescriptors); } else { md = new MethodDescriptor(m); } md.setName("getCumServiceTime"); md.setDisplayName("getCumServiceTime"); mds.addElement(md); } // // getPeakServiceDuration // paramTypes = new Class[0]; paramDescriptors = new ParameterDescriptor[0]; paramIndex = 0; m = null; try { m = TeaServletInvocationStats.Stats.class.getMethod("getPeakServiceDuration", paramTypes); } catch (Throwable t) { t.printStackTrace(); } if (m != null) { md = null; if (paramDescriptors != null) { md = new MethodDescriptor(m, paramDescriptors); } else { md = new MethodDescriptor(m); } md.setName("getPeakServiceDuration"); md.setDisplayName("getPeakServiceDuration"); mds.addElement(md); } // // getPeakServiceDurationAsDouble // paramTypes = new Class[0]; paramDescriptors = new ParameterDescriptor[0]; paramIndex = 0; m = null; try { m = TeaServletInvocationStats.Stats.class.getMethod("getPeakServiceDurationAsDouble", paramTypes); } catch (Throwable t) { t.printStackTrace(); } if (m != null) { md = null; if (paramDescriptors != null) { md = new MethodDescriptor(m, paramDescriptors); } else { md = new MethodDescriptor(m); } md.setName("getPeakServiceDurationAsDouble"); md.setDisplayName("getPeakServiceDurationAsDouble"); mds.addElement(md); } // // getServicedCount // paramTypes = new Class[0]; paramDescriptors = new ParameterDescriptor[0]; paramIndex = 0; m = null; try { m = TeaServletInvocationStats.Stats.class.getMethod("getServicedCount", paramTypes); } catch (Throwable t) { t.printStackTrace(); } if (m != null) { md = null; if (paramDescriptors != null) { md = new MethodDescriptor(m, paramDescriptors); } else { md = new MethodDescriptor(m); } md.setName("getServicedCount"); md.setDisplayName("getServicedCount"); mds.addElement(md); } // // hashCode // paramTypes = new Class[0]; paramDescriptors = new ParameterDescriptor[0]; paramIndex = 0; m = null; try { m = TeaServletInvocationStats.Stats.class.getMethod("hashCode", paramTypes); } catch (Throwable t) { t.printStackTrace(); } if (m != null) { md = null; if (paramDescriptors != null) { md = new MethodDescriptor(m, paramDescriptors); } else { md = new MethodDescriptor(m); } md.setName("hashCode"); md.setDisplayName("hashCode"); mds.addElement(md); } // // incServicedCount // paramTypes = new Class[0]; paramDescriptors = new ParameterDescriptor[0]; paramIndex = 0; m = null; try { m = TeaServletInvocationStats.Stats.class.getMethod("incServicedCount", paramTypes); } catch (Throwable t) { t.printStackTrace(); } if (m != null) { md = null; if (paramDescriptors != null) { md = new MethodDescriptor(m, paramDescriptors); } else { md = new MethodDescriptor(m); } md.setName("incServicedCount"); md.setDisplayName("incServicedCount"); mds.addElement(md); } // // setCumServiceTime // paramTypes = new Class[1]; paramDescriptors = new ParameterDescriptor[1]; paramIndex = 0; paramTypes[paramIndex] = long.class; pd = new ParameterDescriptor(); pd.setName("cumServiceTime"); pd.setDisplayName("long"); paramDescriptors[paramIndex] = pd; paramIndex++; m = null; try { m = TeaServletInvocationStats.Stats.class.getMethod("setCumServiceTime", paramTypes); } catch (Throwable t) { t.printStackTrace(); } if (m != null) { md = null; if (paramDescriptors != null) { md = new MethodDescriptor(m, paramDescriptors); } else { md = new MethodDescriptor(m); } md.setName("setCumServiceTime"); md.setDisplayName("setCumServiceTime"); mds.addElement(md); } // // setPeakServiceDuration // paramTypes = new Class[1]; paramDescriptors = new ParameterDescriptor[1]; paramIndex = 0; paramTypes[paramIndex] = long.class; pd = new ParameterDescriptor(); pd.setName("peakServiceDuration"); pd.setDisplayName("long"); paramDescriptors[paramIndex] = pd; paramIndex++; m = null; try { m = TeaServletInvocationStats.Stats.class.getMethod("setPeakServiceDuration", paramTypes); } catch (Throwable t) { t.printStackTrace(); } if (m != null) { md = null; if (paramDescriptors != null) { md = new MethodDescriptor(m, paramDescriptors); } else { md = new MethodDescriptor(m); } md.setName("setPeakServiceDuration"); md.setDisplayName("setPeakServiceDuration"); mds.addElement(md); } // // setServicedCount // paramTypes = new Class[1]; paramDescriptors = new ParameterDescriptor[1]; paramIndex = 0; paramTypes[paramIndex] = long.class; pd = new ParameterDescriptor(); pd.setName("servicedCount"); pd.setDisplayName("long"); paramDescriptors[paramIndex] = pd; paramIndex++; m = null; try { m = TeaServletInvocationStats.Stats.class.getMethod("setServicedCount", paramTypes); } catch (Throwable t) { t.printStackTrace(); } if (m != null) { md = null; if (paramDescriptors != null) { md = new MethodDescriptor(m, paramDescriptors); } else { md = new MethodDescriptor(m); } md.setName("setServicedCount"); md.setDisplayName("setServicedCount"); mds.addElement(md); } MethodDescriptor[] methodDescriptors = new MethodDescriptor[mds.size()]; mds.copyInto(methodDescriptors); return methodDescriptors; } // Create the property descriptor objects for the bean. private PropertyDescriptor[] createPropertyDescriptors() { PropertyDescriptor[] propertyDescriptors = new PropertyDescriptor[7]; PropertyDescriptor pd = null; int propertyIndex = 0; pd = null; try { pd = new PropertyDescriptor("averageServiceDuration", TeaServletInvocationStats.Stats.class, "getAverageServiceDuration", null); } catch (Throwable t) { t.printStackTrace(); } if (pd != null) { pd.setDisplayName("averageServiceDuration"); pd.setShortDescription(""); propertyDescriptors[propertyIndex] = pd; propertyIndex++; } pd = null; try { pd = new PropertyDescriptor("callee", TeaServletInvocationStats.Stats.class, "getCallee", null); } catch (Throwable t) { t.printStackTrace(); } if (pd != null) { pd.setDisplayName("callee"); pd.setShortDescription(""); propertyDescriptors[propertyIndex] = pd; propertyIndex++; } pd = null; try { pd = new PropertyDescriptor("caller", TeaServletInvocationStats.Stats.class, "getCaller", null); } catch (Throwable t) { t.printStackTrace(); } if (pd != null) { pd.setDisplayName("caller"); pd.setShortDescription(""); propertyDescriptors[propertyIndex] = pd; propertyIndex++; } pd = null; try { pd = new PropertyDescriptor("cumServiceTime", TeaServletInvocationStats.Stats.class, "getCumServiceTime", "setCumServiceTime"); } catch (Throwable t) { t.printStackTrace(); } if (pd != null) { pd.setDisplayName("cumServiceTime"); pd.setShortDescription(""); propertyDescriptors[propertyIndex] = pd; propertyIndex++; } pd = null; try { pd = new PropertyDescriptor("peakServiceDuration", TeaServletInvocationStats.Stats.class, "getPeakServiceDuration", "setPeakServiceDuration"); } catch (Throwable t) { t.printStackTrace(); } if (pd != null) { pd.setDisplayName("peakServiceDuration"); pd.setShortDescription(""); propertyDescriptors[propertyIndex] = pd; propertyIndex++; } pd = null; try { pd = new PropertyDescriptor("peakServiceDurationAsDouble", TeaServletInvocationStats.Stats.class, "getPeakServiceDurationAsDouble", null); } catch (Throwable t) { t.printStackTrace(); } if (pd != null) { pd.setDisplayName("peakServiceDurationAsDouble"); pd.setShortDescription(""); propertyDescriptors[propertyIndex] = pd; propertyIndex++; } pd = null; try { pd = new PropertyDescriptor("servicedCount", TeaServletInvocationStats.Stats.class, "getServicedCount", "setServicedCount"); } catch (Throwable t) { t.printStackTrace(); } if (pd != null) { pd.setDisplayName("servicedCount"); pd.setShortDescription(""); propertyDescriptors[propertyIndex] = pd; propertyIndex++; } if (propertyDescriptors.length == 0) { propertyDescriptors = null; } return propertyDescriptors; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy