Class ProfilingFeature
java.lang.Object
com.atlassian.bamboo.plugins.stash.rest.interceptor.ProfilingFeature
- All Implemented Interfaces:
javax.ws.rs.container.DynamicFeature
@Provider
public class ProfilingFeature
extends Object
implements javax.ws.rs.container.DynamicFeature
Registers the ProfilingInterceptorService for specific resources.
A more elegant solution would be to define a custom annotation and use it to mark the resources that need to be
profiled. This would allow us to remove the hard-coded resource name from the ProfilingInterceptorService.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
configure
(javax.ws.rs.container.ResourceInfo resourceInfo, javax.ws.rs.core.FeatureContext context)
-
Constructor Details
-
ProfilingFeature
public ProfilingFeature()
-
-
Method Details
-
configure
public void configure(javax.ws.rs.container.ResourceInfo resourceInfo, javax.ws.rs.core.FeatureContext context) - Specified by:
configure
in interfacejavax.ws.rs.container.DynamicFeature
-