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 225418 Details for
Bug 397829
Aspect-J without LTW clashes with JBoss AS7 ModuleClassLoader
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
source code for the used aspect
MyMethodTraceAspect.java (text/plain), 1.32 KB, created by
eis -
on 2013-01-10 04:12:38 EST
(
hide
)
Description:
source code for the used aspect
Filename:
MIME Type:
Creator:
eis -
Created:
2013-01-10 04:12:38 EST
Size:
1.32 KB
patch
obsolete
>package fi.eis.applications.jboss.poc.gemini.spring.aop.support.api; > >import org.aspectj.lang.JoinPoint; >import org.aspectj.lang.annotation.AfterReturning; >import org.aspectj.lang.annotation.Aspect; >import org.aspectj.lang.annotation.Before; >import org.aspectj.lang.annotation.Pointcut; >import org.jboss.logging.Logger; > > >@Aspect >public class MyMethodTraceAspect { > > private Logger logger; > > @Before("generalPointcut(methodTrace)") > public void annotationTraceEnter(JoinPoint joinPoint, MyMethodTrace methodTrace) { > if (getLogger(joinPoint).isDebugEnabled()) { > getLogger(joinPoint).debug(joinPoint + " - " + methodTrace + " - " + null); > } > } > > @AfterReturning(pointcut="generalPointcut(methodTrace)", returning="result") > public void annotationTraceExit(JoinPoint joinPoint, MyMethodTrace methodTrace, Object result) { > if (getLogger(joinPoint).isDebugEnabled()) { > getLogger(joinPoint).debug(joinPoint + " - " + methodTrace + " - " + result); > } > } > @Pointcut("@within(fi.eis.applications.jboss.poc.gemini.spring.aop.support.api.MyMethodTrace) && @target(methodTrace)") > public void generalPointcut(MyMethodTrace methodTrace) { } > > private Logger getLogger(JoinPoint joinPoint) { > if (logger == null) { > logger = Logger.getLogger(joinPoint.getTarget().getClass().getName()); > } > return logger; > } >}
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 397829
:
225417
| 225418