ParameterSpec

public interface ParameterSpec<E extends MessageEnvelope<? extends Object, ? extends Object, ? extends Object>>

A specification of handler method parameters, specific for various HandlerMethod implementations.

As long as handler methods are passed with a Message envelope, the specification also transfers knowledge on how to extract the designed argument values from the given envelope for the method with this parameter spec.

Implementing classes are required to be enumerations.

Parameters

<E>

the type of message envelope

Functions

Link copied to clipboard
public abstract Array<Object> extractArguments(E envelope)
Extracts the values to be used during the invocation of the method with this parameter specification.
Link copied to clipboard
public abstract boolean matches(MethodParams params)
Tells if this specification of parameters matches the passed parameters.