Package jetbrains.buildServer.plugins
Annotation Type RegisterMethod
-
@Retention(RUNTIME) @Target(METHOD) @Inherited public @interface RegisterMethod
This annotation should be used for a registry annotated withPerPluginRegistry
. For every method annotated asRegisterMethod
AnnotationBasedRegistryInterceptor
will track registrations 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 saved to be passed to theUnregisterMethod
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 saved to be passed to theUnregisterMethod
- Default:
- {0}
-
-