Details
-
Sub-task
-
Resolution: Done
-
Major
-
4.1.1.Final
-
Sprint to Beta3 Release
-
(see description for explanation of this feature)
Description
When a Filter or Interceptor is annotated with a user-defined name binding annotation (ie, an annotation itself annotated with @NameBinding), then some hyperlink navigation on this annotation should let the user navigate to the associated resources/resource methods/application that have the same user-defined annotation.
Eg:
@Target({ ElementType.TYPE, ElementType.METHOD }) @Retention(value = RetentionPolicy.RUNTIME) @NameBinding public @interface CustomInterceptorBinding { }
and
@ApplicationPath("/app") @CustomInterceptorBinding public class RestApplication extends Application { }
and
@Provider @CustomInterceptorBinding public class CustomResponseFilterWithBinding implements ContainerResponseFilter { @Override public void filter(ContainerRequestContext requestContext, ContainerResponseContext responseContext) throws IOException { responseContext.getHeaders().add("Cache-Control", "no-cache"); } }
In that case, ctrl (or cmd) + click on CustomInterceptorBinding should allow for navigation between all those 3 elements