Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 26437 Details for
Bug 107953
VerifyError, @this(somearg) in @AspectJ style pointcut
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
aspect file: TransactionManager
TransactionManager.aj (text/plain), 1.57 KB, created by
John J. Franey
on 2005-08-24 21:31:52 EDT
(
hide
)
Description:
aspect file: TransactionManager
Filename:
MIME Type:
Creator:
John J. Franey
Created:
2005-08-24 21:31:52 EDT
Size:
1.57 KB
patch
obsolete
>/** > * > */ >package org.jfraney.aspects; > >import javax.ejb.TransactionAttribute; > >import org.aspectj.lang.annotation.AfterReturning; >import org.aspectj.lang.annotation.AfterThrowing; >import org.aspectj.lang.annotation.Aspect; >import org.aspectj.lang.annotation.Before; >import org.aspectj.lang.annotation.Pointcut; > >@Aspect >public class TransactionManager { > @Pointcut("(execution(@javax.ejb.TransactionAttribute * *.*(..)) && this(attr))") > void transactedMethod(javax.ejb.TransactionAttribute attr) {} > > @Before("transactedMethod(attr) ") > public void beforeTransaction(TransactionAttribute attr) { > System.out.println("before transaction"); > } > > @AfterReturning("transactedMethod(attr)") > public void afterTransaction(TransactionAttribute attr) { > System.out.println("after transaction"); > } > > > @AfterThrowing(pointcut="transactedMethod(attr)", throwing="RuntimeException") > public void failedTransaction(TransactionAttribute attr) { > System.out.println("failed transaction"); > } > > /* > * The following pointcut and advice run without exception > * Commented out to temporarily disable. > * > @Pointcut("(execution(@javax.ejb.TransactionAttribute * *.*(..)))") > > void transactedMethod() {} > @Before("transactedMethod() ") > public void beforeTransaction() { > System.out.println("before transaction"); > } > > @AfterReturning("transactedMethod()") > public void afterTransaction() { > System.out.println("after transaction"); > } > > > @AfterThrowing(pointcut="transactedMethod()", throwing="RuntimeException") > public void failedTransaction() { > System.out.println("failed transaction"); > } > */ >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 107953
:
26435
|
26436
| 26437