Package io.vertigo.core.node.component
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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <C extends CoreComponent>
Cunwrap(C component)
Unwrap the proxy<C extends CoreComponent>
Cwrap(C instance, Map<Method,List<Aspect>> joinPoints)
Create a proxy-reference.
-
-
-
Method Detail
-
wrap
<C extends CoreComponent> C wrap(C instance, Map<Method,List<Aspect>> joinPoints)
Create a proxy-reference.- Parameters:
instance
- Component's instancejoinPoints
- 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
-
-