Created
July 7, 2009 12:45
-
-
Save rhyolight/142053 to your computer and use it in GitHub Desktop.
Config for a groovy script that transforms this into a btrace java source file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
btrace { | |
templates { | |
// all methods within mydomain classes | |
methodTimerTemplate { | |
template = 'btrace-templates\\ManyMethodTimerTemplate.template' | |
targetClasses { | |
'/com\\\\.mydomain\\\\..+/' { | |
targetMethods = [ '/.+/' ] | |
} | |
} | |
} | |
// all mydomain getters and setters | |
accessorMethodTimerTemplate { | |
template = 'btrace-templates\\ManyMethodTimerTemplate.template' | |
targetClasses { | |
'/com\\\\.mydomain\\\\..+/' { | |
targetMethods = [ | |
'/get.*/', | |
'/set.*/' | |
] | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment