I am trying to obtain the generic type of a class using the JoinPoint in Spring AOP. But there doesnt seem to be a way to do that. This is the class whose methods I am intercepting.
public abstract class AbstractHibernateDaoBase<T, ID extends Serializable> implements BaseDao<T, ID>, PersistenceAware
{
//Some methods
}
I am able to intercept these methods and execute advices. But what I need is the type T (using AOP) which gets its value at runtime. Is there a way to do this?