Class JavassistAopPlugin

  • All Implemented Interfaces:
    AopPlugin, CoreComponent, Plugin

    public final class JavassistAopPlugin
    extends Object
    implements AopPlugin
    This class implements the aspects using the javassist library.
    Author:
    pchretien
    • Constructor Detail

      • JavassistAopPlugin

        public JavassistAopPlugin()
    • Method Detail

      • wrap

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

        public <C extends CoreComponent> C unwrap​(C component)
        Description copied from interface: AopPlugin
        Unwrap the proxy
        Specified by:
        unwrap in interface AopPlugin
        Parameters:
        component - the component to unwrap
        Returns:
        the underlying object