com.atlassian.jira.rest.v2.issue.scope
Class RequestScopeInterceptor
java.lang.Object
com.atlassian.jira.rest.v2.issue.scope.RequestScopeInterceptor
- All Implemented Interfaces:
- com.atlassian.plugins.rest.common.interceptor.ResourceInterceptor
public class RequestScopeInterceptor
- extends Object
- implements com.atlassian.plugins.rest.common.interceptor.ResourceInterceptor
This interceptor can be used in plugins that define <rest> modules. In conjunction with the RequestScope
, plugins can have define request-scoped beans in Spring.
- Since:
- v4.2
Method Summary |
void |
intercept(com.atlassian.plugins.rest.common.interceptor.MethodInvocation invocation)
Uses the RequestScope to begin and destroy a Request. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RequestScopeInterceptor
public RequestScopeInterceptor(RequestScope scope)
- Creates a new RequestScopeInterceptor.
- Parameters:
scope
- a RequestScope
intercept
public void intercept(com.atlassian.plugins.rest.common.interceptor.MethodInvocation invocation)
throws IllegalAccessException,
InvocationTargetException
- Uses the RequestScope to begin and destroy a Request. This has the side effect of setting and clearing the
"current" MethodInvocation.
- Specified by:
intercept
in interface com.atlassian.plugins.rest.common.interceptor.ResourceInterceptor
- Parameters:
invocation
- a MethodInvocation containing information about the invocation
- Throws:
IllegalAccessException
InvocationTargetException
Copyright © 2002-2013 Atlassian. All Rights Reserved.