Package org.xooof.xmldispatcher.classinfo

Examples of org.xooof.xmldispatcher.classinfo.MClass


    }

    synchronized public MClass getMClass(String className)
      throws XMLDispatcherCommException, XMLDispatcherUserException, XMLDispatcherSystemException, XMLDispatcherAppException
    {
        MClass classinfo = null;
        if (!ClassInfoCache.cache.containsKey(className)) {
            classinfo = (MClass) this.xd.dispatchClassMethod(className, "getClassInfo", null);
            ClassInfoCache.cache.put(className, classinfo);
        } else {
            classinfo = (MClass) ClassInfoCache.cache.get(className);
View Full Code Here


     */
    synchronized public short getVerb(String className, String methodName)
      throws XMLDispatcherCommException, XMLDispatcherUserException, XMLDispatcherSystemException, XMLDispatcherAppException
    {
        short result = -1;
        MClass classinfo = getMClass(className);
       
        MClassMethod[] classmethods = classinfo.getClassmethods();
        for (int i=0; i<classmethods.length && result==-1; i++) {
            MClassMethod method = classmethods[i];
            if(method.getName().equalsIgnoreCase(methodName)) {
                result = EnvelopeConstants.verbDispatchClassMethodXML;
            }
        }
        if (methodName.equalsIgnoreCase(XOOOF_CLASS_METHOD_GETCLASSINFO)) {
            result = EnvelopeConstants.verbDispatchClassMethodXML;
        }
       
        MInstanceMethod[] instancemethods = classinfo.getInstancemethods();
        for (int i=0; i<instancemethods.length && result==-1; i++) {
            MInstanceMethod method = instancemethods[i];
            if(method.getName().equalsIgnoreCase(methodName)) {
                if (method.getSpecial() != null && method.getSpecial().equalsIgnoreCase("constructor")) {
                    result = EnvelopeConstants.verbDispatchNewInstanceMethodXML;
View Full Code Here

  
    synchronized public String[] getAllowedMethodsForState(String className, String state)
    throws XMLDispatcherCommException, XMLDispatcherUserException, XMLDispatcherSystemException, XMLDispatcherAppException
    {
        String[] result = null;
        MClass classinfo = getMClass(className);
       
        MInstanceMethod[] methods = classinfo.getInstancemethods();
        for (int i=0; i<methods.length && result==null; i++) {
            MInstanceMethod method = methods[i];
            if (method.getName().equalsIgnoreCase(state)) {
                 result = method.getStates();
            }
View Full Code Here

TOP

Related Classes of org.xooof.xmldispatcher.classinfo.MClass

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.