Annotation Interface Interception.ExternalDelegate

Enclosing class:
Interception

@Documented @Retention(CLASS) @Target(TYPE) public static @interface Interception.ExternalDelegate
Use this annotation to mark an external class ready for interception delegation. This annotations must be added to the service factory (such as a Supplier) that provides an instance of a class.

If the factory provides an interface, this annotation is not needed, as interfaces are safe to delegate.

See Also:
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Type provided by this service factory that is a class and should support interception.
  • Element Details

    • value

      Class<?> value
      Type provided by this service factory that is a class and should support interception.
      Returns:
      type that should be intercepted, see Interception.Delegate