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 voidbeforeDispose()A closeable plugin should notify other components that it will be shutdown (e.g.voiddispose()Dispose of resources should be done here - eg remove event listeners, cancel scheduled tasksvoidforceDispose()Eg interrupt threadsObjectinvoke(org.aopalliance.intercept.MethodInvocation invocation)
-
-
-
Method Detail
-
invoke
public Object invoke(org.aopalliance.intercept.MethodInvocation invocation) throws Throwable
- Specified by:
invokein interfaceorg.aopalliance.intercept.MethodInterceptor- Throws:
Throwable
-
beforeDispose
public void beforeDispose()
Description copied from interface:DisposablePerPluginRegistryA closeable plugin should notify other components that it will be shutdown (e.g. ServerListener.serverShutdown will be fired)- Specified by:
beforeDisposein interfaceDisposablePerPluginRegistry
-
dispose
public void dispose()
Description copied from interface:DisposablePerPluginRegistryDispose of resources should be done here - eg remove event listeners, cancel scheduled tasks- Specified by:
disposein interfaceDisposablePerPluginRegistry
-
forceDispose
public void forceDispose()
Description copied from interface:DisposablePerPluginRegistryEg interrupt threads- Specified by:
forceDisposein interfaceDisposablePerPluginRegistry
-
-