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 asRegisterMethodAnnotationBasedRegistryInterceptorwill track registrations 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 saved to be passed to theUnregisterMethodClass<?>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 saved to be passed to theUnregisterMethod- Default:
- {0}
-
-