Annotation Type ActionParameterDescription
-
@Retention(RUNTIME) @Target(PARAMETER) public @interface ActionParameterDescriptionDescribes the Parameter of an Method that is annotated withActionDescription. Some information are introspected by the Discovery that registeres the Action at the PolicyManagementPoint. But for example the parameter cannot be introspected in any situation. Up to Java 1.7 argument names are dropped during compilation and in java 1.8 option preserve argument names is not activated per default. Thus each instance of thisActionParameterDescriptionshould contain at least the name. For example@ActionDescription(description = "anagram the parameter") public String anagram(@ActionParameterDescription(name = "percentage",description = "The percentage you need to anagram") Integer percentage) { return "xxxx"; }
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description StringdescriptionDescription of the Parameter.booleanmandatoryMandatory parameter?.Class<?>typeDeprecated.
-
-
-
Element Detail
-
name
String name
Name of the Parameter.- Returns:
- The parameter name.
-
-
-
description
String description
Description of the Parameter.- Returns:
- Description
- Default:
- ""
-
-
-
type
@Deprecated Class<?> type
Deprecated.Type of the parameter. Per default introspected with method.getReturnType()- Returns:
- Parametertype
- Default:
- java.lang.Void.class
-
-