Interface AopPlugin

  • All Superinterfaces:
    CoreComponent, Plugin
    All Known Implementing Classes:
    JavassistAopPlugin

    public interface AopPlugin
    extends Plugin
    Create proxy-reference from component's instance. Proxy reference implements aspects (AOP).
    Author:
    pchretien
    • Method Detail

      • wrap

        <C extends CoreComponent> C wrap​(C instance,
                                         Map<Method,​List<Aspect>> joinPoints)
        Create a proxy-reference.
        Parameters:
        instance - Component's instance
        joinPoints - List of joinPoints
        Returns:
        Proxy-Reference
      • unwrap

        <C extends CoreComponent> C unwrap​(C component)
        Unwrap the proxy
        Parameters:
        component - the component to unwrap
        Returns:
        the underlying object