In AOP(using Aspectj) to intercept a method call and acess its parameters we can use
Object[] args=joinPoint.getArgs();
But does the JoinPoint class gives us any feature to infer the type of the parameters? For instance:
public void setApples(List<Apple>){..}
All I get is an Object
instance. Is there some way to infer the type of that parameter using the joinpoint
properties or reflection or Guava TypeToken
?
Aucun commentaire:
Enregistrer un commentaire