org.kohsuke.stapler
Class LimitedTo.Processor
java.lang.Object
org.kohsuke.stapler.interceptor.Interceptor
org.kohsuke.stapler.LimitedTo.Processor
- Enclosing class:
- LimitedTo
public static class LimitedTo.Processor
- extends Interceptor
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LimitedTo.Processor
public LimitedTo.Processor()
setTarget
public void setTarget(Function target)
- Description copied from class:
Interceptor
- Called by Stapler to set up the target of the interceptor.
This function object represents a method on which your annotation is placed.
This happens once before this instance takes any calls.
- Overrides:
setTarget
in class Interceptor
invoke
public Object invoke(StaplerRequest request,
StaplerResponse response,
Object instance,
Object[] arguments)
throws IllegalAccessException,
InvocationTargetException
- Description copied from class:
Interceptor
- Intercepts the call.
The minimal no-op interceptor would do target.invoke(request,response,instance,arguments)
,
but the implementation is free to do additional pre/post processing.
- Specified by:
invoke
in class Interceptor
- Parameters:
request
- The current request we are processing.response
- The current response object.instance
- The domain object instance whose method we are about to invoke.arguments
- Arguments of the method call.
- Returns:
- Return value from the method.
- Throws:
IllegalAccessException
InvocationTargetException
Copyright © 2013. All Rights Reserved.