Class AnnotationBasedRegistryInterceptor
- java.lang.Object
-
- jetbrains.buildServer.plugins.spring.AnnotationBasedRegistryInterceptor
-
- All Implemented Interfaces:
ContextLocalBean
,DisposablePerPluginRegistry
,org.aopalliance.aop.Advice
,org.aopalliance.intercept.Interceptor
,org.aopalliance.intercept.MethodInterceptor
public class AnnotationBasedRegistryInterceptor extends Object implements org.aopalliance.intercept.MethodInterceptor, DisposablePerPluginRegistry
-
-
Constructor Summary
Constructors Constructor Description AnnotationBasedRegistryInterceptor(Class<?> targetClass, Object parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
beforeDispose()
A closeable plugin should notify other components that it will be shutdown (e.g.void
dispose()
Dispose of resources should be done here - eg remove event listeners, cancel scheduled tasksvoid
forceDispose()
Eg interrupt threadsObject
invoke(org.aopalliance.intercept.MethodInvocation invocation)
-
-
-
Method Detail
-
invoke
public Object invoke(org.aopalliance.intercept.MethodInvocation invocation) throws Throwable
- Specified by:
invoke
in interfaceorg.aopalliance.intercept.MethodInterceptor
- Throws:
Throwable
-
beforeDispose
public void beforeDispose()
Description copied from interface:DisposablePerPluginRegistry
A closeable plugin should notify other components that it will be shutdown (e.g. ServerListener.serverShutdown will be fired)- Specified by:
beforeDispose
in interfaceDisposablePerPluginRegistry
-
dispose
public void dispose()
Description copied from interface:DisposablePerPluginRegistry
Dispose of resources should be done here - eg remove event listeners, cancel scheduled tasks- Specified by:
dispose
in interfaceDisposablePerPluginRegistry
-
forceDispose
public void forceDispose()
Description copied from interface:DisposablePerPluginRegistry
Eg interrupt threads- Specified by:
forceDispose
in interfaceDisposablePerPluginRegistry
-
-