/** * Create a new resource method invocable model. Parameter values will be * automatically decoded. * * @param handler resource method handler. * @param handlingMethod handling Java method. * @return Invocable. */ public static Invocable create(MethodHandler handler, Method handlingMethod) { return create(handler, handlingMethod, false); }
/** * Create a new resource method invocable model. * * @param handler resource method handler. * @param definitionMethod method that is defined to be executed on the {@code handler}. * @param encodedParameters {@code true} if the automatic parameter decoding * should be disabled, false otherwise. * @return Invocable */ public static Invocable create(MethodHandler handler, Method definitionMethod, boolean encodedParameters) { return create(handler, definitionMethod, null, encodedParameters); }
/** * Create a new resource method invocable model. Parameter values will be * automatically decoded. * * @param handler resource method handler. * @param handlingMethod handling Java method. * @return Invocable. */ public static Invocable create(MethodHandler handler, Method handlingMethod) { return create(handler, handlingMethod, false); }
/** * Create a new resource method invocable model. * * @param handler resource method handler. * @param definitionMethod method that is defined to be executed on the {@code handler}. * @param encodedParameters {@code true} if the automatic parameter decoding * should be disabled, false otherwise. * @return Invocable */ public static Invocable create(MethodHandler handler, Method definitionMethod, boolean encodedParameters) { return create(handler, definitionMethod, null, encodedParameters); }
/** * Create a new resource method invocable model backed by an inflector instance. * * @param inflector inflector processing the request method. * * @return Invocable. */ public static <T> Invocable create(Inflector<Request, T> inflector) { return create(MethodHandler.create(inflector), APPLY_INFLECTOR_METHOD, false); }
/** * Create a new resource method invocable model backed by an inflector class. * * @param inflectorClass inflector syb-type processing the request method. * @return Invocable. */ public static Invocable create(Class<? extends Inflector> inflectorClass) { return create(MethodHandler.create(inflectorClass), APPLY_INFLECTOR_METHOD, false); }
/** * Create a new resource method invocable model backed by an inflector instance. * * @param inflector inflector processing the request method. * * @return Invocable. */ public static <T> Invocable create(Inflector<Request, T> inflector) { return create(MethodHandler.create(inflector), APPLY_INFLECTOR_METHOD, false); }
/** * Create a new resource method invocable model backed by an inflector class. * * @param inflectorClass inflector syb-type processing the request method. * @return Invocable. */ public static Invocable create(Class<? extends Inflector> inflectorClass) { return create(MethodHandler.create(inflectorClass), APPLY_INFLECTOR_METHOD, false); }
private Invocable createInvocable() { assert handlerClass != null || handlerInstance != null; final MethodHandler handler; if (handlerClass != null) { handler = MethodHandler.create(handlerClass, encodedParams, handlerParameters); } else { // instance based handler = MethodHandler.create(handlerInstance, handlerParameters); } return Invocable.create(handler, definitionMethod, handlingMethod, encodedParams, routingResponseType); } }
private Invocable createInvocable() { assert handlerClass != null || handlerInstance != null; final MethodHandler handler; if (handlerClass != null) { handler = MethodHandler.create(handlerClass, encodedParams, handlerParameters); } else { // instance based handler = MethodHandler.create(handlerInstance, handlerParameters); } return Invocable.create(handler, definitionMethod, handlingMethod, encodedParams, routingResponseType); } }
/** * Create a new resource method invocable model. Parameter values will be * automatically decoded. * * @param handler resource method handler. * @param handlingMethod handling Java method. * @return Invocable. */ public static Invocable create(MethodHandler handler, Method handlingMethod) { return create(handler, handlingMethod, false); }
/** * Create a new resource method invocable model. * * @param handler resource method handler. * @param definitionMethod method that is defined to be executed on the {@code handler}. * @param encodedParameters {@code true} if the automatic parameter decoding * should be disabled, false otherwise. * @return Invocable */ public static Invocable create(MethodHandler handler, Method definitionMethod, boolean encodedParameters) { return create(handler, definitionMethod, null, encodedParameters); }
/** * Create a new resource method invocable model backed by an inflector class. * * @param inflectorClass inflector syb-type processing the request method. * @return Invocable. */ public static Invocable create(Class<? extends Inflector> inflectorClass) { return create(MethodHandler.create(inflectorClass), APPLY_INFLECTOR_METHOD, false); }
/** * Create a new resource method invocable model backed by an inflector instance. * * @param inflector inflector processing the request method. * * @return Invocable. */ public static <T> Invocable create(Inflector<Request, T> inflector) { return create(MethodHandler.create(inflector), APPLY_INFLECTOR_METHOD, false); }
private Invocable createInvocable() { assert handlerClass != null || handlerInstance != null; final MethodHandler handler; if (handlerClass != null) { handler = MethodHandler.create(handlerClass, encodedParams, handlerParameters); } else { // instance based handler = MethodHandler.create(handlerInstance, handlerParameters); } return Invocable.create(handler, definitionMethod, handlingMethod, encodedParams, routingResponseType); } }
/** * Create a new resource method invocable model backed by an inflector class. * * @param inflectorClass inflector syb-type processing the request method. * @return Invocable. */ public static Invocable create(Class<? extends Inflector> inflectorClass) { return create(MethodHandler.create(inflectorClass), APPLY_INFLECTOR_METHOD, false); }
/** * Create a new resource method invocable model backed by an inflector instance. * * @param inflector inflector processing the request method. * * @return Invocable. */ public static <T> Invocable create(Inflector<Request, T> inflector) { return create(MethodHandler.create(inflector), APPLY_INFLECTOR_METHOD, false); }
/** * Create a new resource method invocable model backed by an inflector class. * * @param inflectorClass inflector syb-type processing the request method. * @return Invocable. */ public static Invocable create(Class<? extends Inflector> inflectorClass) { return create(MethodHandler.create(inflectorClass), APPLY_INFLECTOR_METHOD, false); }
private Invocable createInvocable() { assert handlerClass != null || handlerInstance != null; final MethodHandler handler; if (handlerClass != null) { handler = MethodHandler.create(handlerClass, encodedParams, handlerParameters); } else { // instance based handler = MethodHandler.create(handlerInstance, handlerParameters); } return Invocable.create(handler, definitionMethod, handlingMethod, encodedParams, routingResponseType); } }
private Invocable createInvocable() { assert handlerClass != null || handlerInstance != null; final MethodHandler handler; if (handlerClass != null) { handler = MethodHandler.create(handlerClass, encodedParams, handlerParameters); } else { // instance based handler = MethodHandler.create(handlerInstance, handlerParameters); } return Invocable.create(handler, definitionMethod, handlingMethod, encodedParams, routingResponseType); } }