@Retention(value=RUNTIME) @Target(value=PARAMETER) public @interface ActionParameterDescription
ActionDescription. 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 this
ActionParameterDescription should 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";
}
public abstract String name
public abstract String description
public abstract boolean mandatory
public abstract String pattern
@Deprecated public abstract Class type
Copyright © 2018. All rights reserved.