New features available in the dev version

  3 posts   Feedicon  
Replies: 2 - Last Post: July 14, 2010 07:10
by: Jaroslav Bachorik
showing 1 - 3 of 3
 
Posted: July 13, 2010 07:46 by Jaroslav Bachorik
Hi there,
currently I have added some new features to the BTrace core. Namely they are:

  1. Shortened syntax - now you can omit private static modifier for the script variables and public static for the BTrace handler methods. Also, you don't need to specify public access modifier for the class annotated by @BTrace annotation. If you want to use the old syntax just declare the script class as public.
  2. Shared script methods - in order to enable code reuse it is now possible to call any private methods defined inside the calling script.
  3. Namespaced BTraceUtils - this small feature makes the built-in BTraceUtils functionality more discoverable by placing the methods related to a single scope of functionality to a separate named inner class of BTraceUtils. Check out the javadocs for the details. Note: For the compatibility sakes it is still possible to use non-namespaced methods from the BTraceUtils.


You can get the dev version from the download section

It would be mighty nice if you could test those features in your scripts and give me some feedback - ideas, bugs, etc. Thanks a lot!

JB
 
Posted: July 13, 2010 19:58 by zack_gomez
Hi JB,

Is the shortened syntax available it you use javac with the btrace-client.jar to compile the scripts or only with btrace/btracec?

The shared script methods are going to be fantastic! I'll try and fool around with the dev build this week.


Thanks for your hard work,
-Zack
 
Posted: July 14, 2010 07:10 by Jaroslav Bachorik
The shortened syntax is available always - it is a part of the compilation process once you hint the compiler you want to use it (by not specifying the script class to be public)
Replies: 2 - Last Post: July 14, 2010 07:10
by: Jaroslav Bachorik
  • Mysql
  • Glassfish
  • Jruby
  • Rails
  • Nblogo
Terms of Use; Privacy Policy;
© 2010, Oracle Corporation and/or its affiliates
(revision 20120518.3c65429)
 
 
Close
loading
Please Confirm
Close