public class ForwardingFunction extends Function
Function
that forwards calls to another. Usually used
as a basis of decorator.Constructor and Description |
---|
ForwardingFunction(Function next) |
Modifier and Type | Method and Description |
---|---|
Function |
contextualize(Object usage)
Caller uses this method to tell
Function about how it is being used. |
<A extends Annotation> |
getAnnotation(Class<A> annotation) |
Annotation[] |
getAnnotations() |
String |
getDisplayName()
Gets the human readable name of this function.
|
Type[] |
getGenericParameterTypes() |
String |
getName()
Gets the method name.
|
Annotation[][] |
getParameterAnnotations()
Gets the annotations on parameters.
|
String[] |
getParameterNames()
Gets the list of parameter names.
|
Class[] |
getParameterTypes()
Gets the type of parameters in a single array.
|
String |
getQualifiedName()
Gets "className.methodName"
|
Class |
getReturnType()
Return type of the method.
|
Object |
invoke(StaplerRequest req,
StaplerResponse rsp,
Object o,
Object... args)
Invokes the method.
|
returnNull
public ForwardingFunction(Function next)
public String getDisplayName()
Function
getDisplayName
in class Function
public String getQualifiedName()
Function
getQualifiedName
in class Function
public Class[] getParameterTypes()
Function
getParameterTypes
in class Function
public Class getReturnType()
Function
getReturnType
in class Function
public Function contextualize(Object usage)
Function
Function
about how it is being used.
By default, this methods ignores the given context by returning this
.contextualize
in class Function
public Type[] getGenericParameterTypes()
getGenericParameterTypes
in class Function
public Annotation[][] getParameterAnnotations()
Function
getParameterAnnotations
in class Function
public String[] getParameterNames()
Function
getParameterNames
in class Function
public Object invoke(StaplerRequest req, StaplerResponse rsp, Object o, Object... args) throws IllegalAccessException, InvocationTargetException, javax.servlet.ServletException
Function
invoke
in class Function
IllegalAccessException
InvocationTargetException
javax.servlet.ServletException
public <A extends Annotation> A getAnnotation(Class<A> annotation)
getAnnotation
in class Function
public Annotation[] getAnnotations()
getAnnotations
in class Function
Copyright © 2018. All rights reserved.