org.openrdf.elmo.annotations
Annotation Type intercepts
@Retention(value=RUNTIME)
@Target(value=METHOD)
public @interface intercepts
Used on methods that intercept another method invocation. Placed on methods
that take an InvocationContext as the parameter. This method will be
called around the original method invocation.
- name regular expression that must match the entire method name.
- parameterType list of parameterTypes were each given type
Class.isAssignableFrom(Class) the method parameter type
- returnType the method return type must be
Class.isAssignableFrom(Class) the given type
- declaringClass the method must be declared in the given class or
one of its super classes
- conditionMethod the name of a static method declared in the same
class, with a return type of boolean and a parameter of type Method. Methods
will only be intercepted if the given method returns true.
- Author:
- James Leigh
method
public abstract String method
- Default:
- ""
argc
public abstract int argc
- Default:
- -1
parameters
public abstract Class<?>[] parameters
- Default:
- org.openrdf.elmo.annotations.intercepts.class
returns
public abstract Class<?> returns
- Default:
- org.openrdf.elmo.annotations.intercepts.class
declaring
public abstract Class<?> declaring
- Default:
- org.openrdf.elmo.annotations.intercepts.class
conditional
public abstract String conditional
- Default:
- ""
Copyright © 2004-2008 Aduna. All Rights Reserved.