Package jetbrains.buildServer.plugins
Annotation Type UnregisterMethod
-
@Retention(RUNTIME) @Target(METHOD) @Inherited public @interface UnregisterMethod
This annotation should be used for a registry implementingPerPluginRegistryinterface. For every method annotated asUnregisterMethodAnnotationBasedRegistryInterceptorwill track unregistrations to allow automatic unregistration on plugin unloading. One registry could have several resource types but here should be correspondingUnregisterMethodeachresourceType().
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description int[]parametersDeclares which method arguments should be used from theRegisterMethodClass<?>resourceTypeResource type for this registry method.
-
-
-
Element Detail
-
resourceType
Class<?> resourceType
Resource type for this registry method. One resource type could be tracked by severalRegisterMethodmethods but for each resource type oneUnregisterMethodshould exists.- Default:
- java.lang.Object.class
-
-
-
parameters
int[] parameters
Declares which method arguments should be used from theRegisterMethod- Default:
- {0}
-
-