Package org.kohsuke.stapler.lang.util
Class MethodRefFilter
java.lang.Object
org.kohsuke.stapler.lang.AnnotatedRef
org.kohsuke.stapler.lang.MethodRef
org.kohsuke.stapler.lang.util.MethodRefFilter
MethodRef
filter as a convenience class.- Author:
- Kohsuke Kawaguchi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T extends Annotation>
TgetAnnotation
(Class<T> type) protected abstract MethodRef
getBase()
getName()
Retrieves the referenced method name.boolean
hasAnnotation
(Class<? extends Annotation> type) boolean
Returns true if this method is a 'public' method that should be used for routing requests.static MethodRef
-
Constructor Details
-
MethodRefFilter
public MethodRefFilter()
-
-
Method Details
-
getBase
-
isRoutable
public boolean isRoutable()Description copied from class:MethodRef
Returns true if this method is a 'public' method that should be used for routing requests.- Overrides:
isRoutable
in classMethodRef
-
getName
Description copied from class:MethodRef
Retrieves the referenced method name. Some implementations (e.g. Ruby) cannot guarantee availability of names for all cases, so sometimes the name may be missing. -
invoke
public Object invoke(Object _this, Object... args) throws InvocationTargetException, IllegalAccessException - Specified by:
invoke
in classMethodRef
- Throws:
InvocationTargetException
IllegalAccessException
-
wrap
-
getAnnotation
- Specified by:
getAnnotation
in classAnnotatedRef
-
hasAnnotation
- Overrides:
hasAnnotation
in classAnnotatedRef
-