Search in sources :

Example 1 with MethodAnnotationPointcut

use of jodd.proxetta.pointcuts.MethodAnnotationPointcut in project jodd by oblac.

the class PetiteHelper method createProxyProxetta.

public static ProxyProxetta createProxyProxetta() {
    ProxyPointcut pointcut_logged = new MethodAnnotationPointcut(Logged.class);
    ProxyAspect aspect_logged = new ProxyAspect(LogProxyAdvice.class, pointcut_logged);
    return ProxyProxetta.withAspects(aspect_logged);
}
Also used : MethodAnnotationPointcut(jodd.proxetta.pointcuts.MethodAnnotationPointcut) ProxyAspect(jodd.proxetta.ProxyAspect) ProxyPointcut(jodd.proxetta.ProxyPointcut)

Example 2 with MethodAnnotationPointcut

use of jodd.proxetta.pointcuts.MethodAnnotationPointcut in project jodd by oblac.

the class PetiteHelper method createProxyProxetta.

public static ProxyProxetta createProxyProxetta() {
    ProxyPointcut pointcut_logged = new MethodAnnotationPointcut(Logged.class);
    ProxyAspect aspect_logged = new ProxyAspect(LogProxyAdvice.class, pointcut_logged);
    ProxyProxetta proxetta = ProxyProxetta.withAspects(aspect_logged);
    return proxetta;
}
Also used : ProxyProxetta(jodd.proxetta.impl.ProxyProxetta) MethodAnnotationPointcut(jodd.proxetta.pointcuts.MethodAnnotationPointcut) ProxyAspect(jodd.proxetta.ProxyAspect) ProxyPointcut(jodd.proxetta.ProxyPointcut)

Aggregations

ProxyAspect (jodd.proxetta.ProxyAspect)2 ProxyPointcut (jodd.proxetta.ProxyPointcut)2 MethodAnnotationPointcut (jodd.proxetta.pointcuts.MethodAnnotationPointcut)2 ProxyProxetta (jodd.proxetta.impl.ProxyProxetta)1