Interface InterceptionProxySubclass

All Superinterfaces:
Subclass

public interface InterceptionProxySubclass extends Subclass
Represents an interception proxy. Typically, interception is performed by creating a subclass of the original class and arranging bean instantiation such that the contextual instance is in fact an instance of the subclass, but that isn't always possible. In case of InterceptionProxy, interception is performed by a proxy that delegates to the actual contextual instance. Such proxy implements this interface.
  • Method Summary

    Modifier and Type
    Method
    Description
     
    static <T> T
    unwrap(T obj)
    Attempts to unwrap the object if it represents an interception proxy.
  • Method Details

    • arc_delegate

      Object arc_delegate()
      Returns:
      the contextual instance
    • unwrap

      static <T> T unwrap(T obj)
      Attempts to unwrap the object if it represents an interception proxy.

      This method should only be used with caution. If you unwrap an interception proxy, then certain key functionality will not work as expected.

      Type Parameters:
      T - the type of the object to unwrap
      Parameters:
      obj - the object to unwrap
      Returns:
      the contextual instance if the object represents an interception proxy, the object otherwise