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