I think I got partial answer to my question (may be not the exact one).
1] All the POJOs are annotated with @XmlRootElement
so I created one more pointcut and following advise
// join points created by following point cuts
@Pointcut("within(@javax...XmlRootElement *)")
public void beanAnnotatedWithSpecificAnnotation()
@Pointcut("execution(* com.company.base..*(..))")
public void allMethods()
// this is advise
@Before("!beanAnnotatedWithSpecificAnnotation() && allMethods()")
public void applyAdvise(JoinPoint jp) {
// TODO: advise code ...
}
2] But, what if POJO does not contain @XmlRootElement
and only implements java.io.Serialize
interface?