[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
] [
List Home
]
[aspectj-users] debugging "with runtime test"?
From
: Barry Kaplan <
groups1@xxxxxxxxxxx
>
Date
: Thu, 30 Nov 2006 08:34:37 -0500
Delivered-to
: aspectj-users@eclipse.org
User-agent
: Thunderbird 1.5.0.8 (Windows/20061025)
I have advised that is getting weaved with a runtime test:
@Pointcut("get(@com.foliofn.icconvert.folio1.account.SessionContext org.hibernate.SessionFactory *.*) && @target(sc)")
void sessionFactoryFieldGet(SessionContext sc){}
@Pointcut("get(@com.foliofn.icconvert.folio1.account.SessionContext org.hibernate.Session *.*) && @target(sc)")
void sessionFieldGet(SessionContext sc){}
@Around("sessionFactoryFieldGet(sc)")
public SessionFactory getSessionFactory(JoinPoint jp, SessionContext sc){
return sessionFactories.get(sc.unitName());
}
@Around("sessionFieldGet(sc)")
public Session getSession(JoinPoint jp, SessionContext sc){
return sessionFactories.get(sc.unitName()).getCurrentSession();
}
The advise never executes, but I cannot see why. I've turned on the weavers debugging in aop.xml but that adds no new information. Is there any way I get aspectj to log info at runtime on the actual checks?
-barry
Follow-Ups
:
Re: [aspectj-users] debugging "with runtime test"?
From:
Andy Clement
Prev by Date:
Re: [aspectj-users] can you say that AspectJ types are Java types?
Next by Date:
Re: [aspectj-users] debugging "with runtime test"?
Previous by thread:
[aspectj-users] can you say that AspectJ types are Java types?
Next by thread:
Re: [aspectj-users] debugging "with runtime test"?
Index(es):
Date
Thread