Package com.softwarementors.extjs.djn.api

Examples of com.softwarementors.extjs.djn.api.RegisteredStandardMethod


  }

  private Object[] getIndividualRequestParameters(JsonRequestData request) {
    assert request != null;

    RegisteredStandardMethod method = getStandardMethod( request.getAction(), request.getMethod());
    assert method != null;

    Object[] parameters;
    if( !method.getHandleParametersAsJsonArray()) {
      checkJsonMethodParameterTypes( request.getJsonData(), method );
      parameters = jsonDataToMethodParameters(method, request.getJsonData(), method.getParameterTypes(), method.getGsonParameterTypes() );
    }
    else {
      parameters = new Object[] { request.getJsonData() };
    }
    return parameters;
View Full Code Here


    RegisteredAction action = getRegistry().getAction(actionName);
    if( action == null ) {
      throw RequestException.forActionNotFound( actionName );
    }

    RegisteredStandardMethod method = action.getStandardMethod(methodName);
    if( method == null ) {
      throw RequestException.forActionMethodNotFound( action.getName(), methodName );
    }
    return method;
  }
View Full Code Here

  protected Object dispatchStandardMethod( String actionName, String methodName, Object[] parameters ) {
    assert !StringUtils.isEmpty(actionName)
    assert !StringUtils.isEmpty(methodName);
    assert parameters != null;
   
    RegisteredStandardMethod method = getStandardMethod( actionName, methodName);
    Object result = getDispatcher().dispatch(method, parameters);
    return result;
  }
View Full Code Here

TOP

Related Classes of com.softwarementors.extjs.djn.api.RegisteredStandardMethod

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.