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 26221 Details for
Bug 107194
weaving gives a bad file descriptor exception on resource reading
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
aspect
aspect.txt (text/plain), 1.64 KB, created by
Torsten Curdt
on 2005-08-18 04:02:22 EDT
(
hide
)
Description:
aspect
Filename:
MIME Type:
Creator:
Torsten Curdt
Created:
2005-08-18 04:02:22 EDT
Size:
1.64 KB
patch
obsolete
>import org.aspectj.lang.JoinPoint; >import org.aspectj.lang.Signature; >import org.apache.commons.logging.Log; >import org.apache.commons.logging.LogFactory; > >public aspect LogAspect >{ > declare precedence : LogAspect, *; > > private Log getLog(final Signature pSignature) { > return LogFactory.getLog(pSignature.getDeclaringType()); > } > > pointcut returnCalls() : > !within(LogAspect) && > //!within(container.Builder) && > ( > execution(* org.whatever..*(..)) > || execution(* org.whatever..*()) > ) && ( > (execution(public static * *.*(..)) && !execution(public static void *.*(..))) > || (execution(public static * *.*()) && !execution(public static void *.*())) > || (execution(public * *.*(..)) && !execution(public void *.*(..))) > || (execution(public * *.*()) && !execution(public void *.*())) > ); > > pointcut voidCalls() : > !within(LogAspect) && > //!within(container.Builder) && > ( > execution(* org.whatever..*(..)) > || execution(* org.whatever..*()) > ) && ( > execution(public static void *.*(..)) > || execution(public static void *.*()) > || execution(public void *.*(..)) > || execution(public void *.*()) > || execution(new(..)) > || execution(new()) > ); > > after() throwing(Throwable pThrowable) : voidCalls() || returnCalls() > { > } > > Object around() : voidCalls() > { > final Object result = proceed(); > return result; > } > > Object around() : returnCalls() > { > final Object result = proceed(); > return proceed(); > } >}
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 107194
:
26187
|
26188
|
26189
| 26221