Class ProfilingFeature
java.lang.Object
com.atlassian.bamboo.plugins.stash.rest.interceptor.ProfilingFeature
- All Implemented Interfaces:
jakarta.ws.rs.container.DynamicFeature
@Provider
public class ProfilingFeature
extends Object
implements jakarta.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
Nested ClassesModifier and TypeClassDescriptionstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(jakarta.ws.rs.container.ResourceInfo resourceInfo, jakarta.ws.rs.core.FeatureContext context)
-
Constructor Details
-
ProfilingFeature
public ProfilingFeature()
-
-
Method Details
-
configure
public void configure(jakarta.ws.rs.container.ResourceInfo resourceInfo, jakarta.ws.rs.core.FeatureContext context) - Specified by:
configurein interfacejakarta.ws.rs.container.DynamicFeature
-