Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account


merged 7 commits into from Jun 13, 2012


None yet
2 participants

javabrett commented Nov 23, 2011

  • Upgrade to AspectJ 1.6.11
  • Adds "ajc" Maven build profile for testing with the AJC compiler
  • Introduces ScopedTimingAspect for late-binding of stopwatch logging advice via concrete aspects in aop.xml, obviating the need for explicit @Profiled annotation.
  • Introduces perf4j.properties file to provide package/hierarchical code-external control over default tags/messages.
@javabrett javabrett PERFFORJ-56 : Configurable default logging tag and message
A properties file perf4j.properties is now loaded from the classpath if it
exists and will format AOP tags and messages where not specified on an
@Profiled annotation.  Entries in this file are:

tag.com.package.ClassName.methodName=static tag
message.com.package.ClassName.methodName=static message

tag.com.package.AllMethodsInClass=static tag

tag.com.parent.package.inherited=static tag


highest-level default tag, applies if no more specific tags match

Parents and ancestors match log4j-style, except the most-specific selector is a method name.

Matches only that exact method.

javabrett added some commits Oct 26, 2011

@javabrett javabrett PERFFORJ-61 Allow AspectJ profiling with without adding @Profiled

Introduces new abstract AspectJ aspects, which can be
concretized with any simple pointcut expression in aop.xml, obviating the
need for explicit @Profiled annotations.
@javabrett javabrett PERFFORJ-58,37 : Added compile profile for ajc, upgrade to 1.6.11.
Introduces a Maven Profile "ajc" which can be activated during builds by
passing -Pajc to Maven CLI, which activates aspectj-maven-plugin. This
is indended as a temporary/testing interim for ajc-compilation rather than
a permanent distribution solution.

The AspectJ version is also pulled into a property aspectjVersion at the
same time, and version is updated to 1.6.11.  1.6.1 presents problems with
other changes on this branch when using the ajc compiler.
@javabrett javabrett Unused import and EOL fixes from rebase. ea42494
@javabrett javabrett Merged remainder of PERFFORJ-56 topic branch into PERFFORJ-61-56 08c350e
@javabrett javabrett Fixed/implemented PackageParentProperties getProperty.
Implemented missing/needed methods in PackageParentProperties. Tests
@javabrett javabrett Added tests for EJB custom tags/messages via perf4j.properties. 66e462c

@xuhuisheng xuhuisheng added a commit that referenced this pull request Jun 13, 2012

@xuhuisheng xuhuisheng Merge pull request #12 from javabrett/PERFFORJ-61-56

@xuhuisheng xuhuisheng merged commit 8143b6b into perf4j:master Jun 13, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment