<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.3</version>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
<debug>true</debug>
<debuglevel>lines,vars,source</debuglevel>
</configuration>
</plugin>
ProxyPointcut pointcut_logged = new ProxyPointcutSupport() {
public boolean apply(MethodInfo methidInfo) {
return hasAnnotation(methidInfo, Logged.class);
}
};
ProxyPointcut pointcut_performance = new ProxyPointcutSupport() {
public boolean apply(MethodInfo methidInfo) {
return hasAnnotation(methidInfo, Performance.class);
}
};
ProxyAspect aspect_logged = new ProxyAspect(LogProxyAdvice.class, pointcut_logged);
ProxyAspect aspect_performance = new ProxyAspect(PerformanceMeasureProxyAdvice.class, pointcut_performance);
ProxyProxetta proxetta = ProxyProxetta.withAspects(aspect_logged, aspect_performance);
/////
// useless
@PetiteBean (value = "Bla")
public class Bla {
@Logged
public Integer findByStatus(Integer schnittstelle, Long states) {
return -1;
}
@Performance
public List<Long> coolMethod() {
final Date now = new Date();
JDateTime now_2 = new JDateTime();
final ArrayList<Long> result = new ArrayList<>();
result.add(now.getTime());
result.add(now_2.getTimeInMillis());
return result;
}
}
// useless
-> useless class ; only for showing my case