Annotation Interface ExclusivePluginGroup


@Inherited @Retention(RUNTIME) @Target(TYPE) public @interface ExclusivePluginGroup
Retains 2.x plugin-instance metadata for source and binary linkage. The 3.x factory configuration instead uses DurableExecutionPluginFactory.getExclusiveGroup() and does not inspect this instance annotation.

In 2.x, this declares mutually exclusive instrumentation without adding methods to an existing plugin contract. Only one plugin instance in a group may be configured, including when multiple instances have the same concrete class. Subclasses retain every group declared by their superclasses, even when they declare another group. Environment discovery reuses an already-explicit implementation of the exact concrete type instead of constructing a duplicate. Older cores ignore this optional metadata and retain their existing registration behavior.

  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
     
  • Element Details