Package com.sun.org.apache.commons.modeler

Examples of com.sun.org.apache.commons.modeler.OperationInfo


            {
                continue;
            }
        }
       
        OperationInfo operationInfo;

        //**** A T T R I B U T E S ******
//        attrs.remove("x_path");
//        attrs.remove("attribute_names");
//        attrs.remove("monitoring_enabled");
View Full Code Here


               
            }
            //----------OPERATIONS----------------
            else
            {
                OperationInfo operationInfo = getOperationInfo(methods[j], LOCATED_IN_RUNTIMEBEAN);
                mergeWithOperationInfo(managedBean, operationInfo);
            }
        }
       
        //**** A T T R I B U T E S ******
 
View Full Code Here

                isMethodMatch(methods[j], "setManagedResource", _clsObjAndStr) ||
                isMethodMatch(methods[j], "setModelMBeanInfo", _clsModelMBI)||
                isMethodMatch(methods[j], "getMBeanInfo", null||
                isMethodMatch(methods[j], "invoke", _clsInvokeParms) )
                continue;
            OperationInfo operationInfo = getOperationInfo(methods[j], LOCATED_IN_MBEAN);
            mergeWithOperationInfo(managedBean, operationInfo);
        }
       
    }
View Full Code Here

    }
   
    //*****************************************************************************
    private static OperationInfo getOperationInfo(Method method, String whereType)
    {
        OperationInfo info = new OperationInfo();
        info.setName(method.getName());
        info.setReturnType(method.getReturnType().getName());
        Class paramsClasses[]=method.getParameterTypes();
        for(int k=0; k<paramsClasses.length; k++)
        {
            info.addParameter(new ParameterInfo("param"+(k+1), paramsClasses[k].getName(), null));
        }
        if (whereType!=null)
            info.addField(newField(WHERE_LOCATED_FIELD_NAME, whereType));
        return info;
    }
View Full Code Here

    //*****************************************************************************
    private static OperationInfo createOperationInfo(String name, String impact,
          String returnType, ParameterInfo param,
          String whereType)
    {
        OperationInfo info = new OperationInfo();
        info.setName(name);
        info.setImpact(impact);
        if(returnType!=null)
           info.setReturnType(returnType);
        if(param!=null)
            info.addParameter(param);
        if (whereType!=null)
            info.addField(newField(WHERE_LOCATED_FIELD_NAME, whereType));
        return info;
    }
View Full Code Here

TOP

Related Classes of com.sun.org.apache.commons.modeler.OperationInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.