public abstract class AnnotationHandler<T extends Annotation> extends Object
InjectedParameter| Constructor and Description |
|---|
AnnotationHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
convert(Class targetType,
String value)
Helper method for
parse(StaplerRequest, Annotation, Class, String) to convert to the right type
from String. |
abstract Object |
parse(StaplerRequest request,
T a,
Class type,
String parameterName) |
public abstract Object parse(StaplerRequest request, T a, Class type, String parameterName) throws javax.servlet.ServletException
request - Current request being processed. Normally the parameter injection grabs some value from here and returns it.
Never null.a - The annotation object attached on the parameter for which this handler is configured. Never nulltype - The type of the parameter. Any value returned from this method must be assignable to this type.
Never null.parameterName - Name of the parameter.javax.servlet.ServletExceptionprotected final Object convert(Class targetType, String value)
parse(StaplerRequest, Annotation, Class, String) to convert to the right type
from String.Copyright © 2014. All rights reserved.