This aspect enables you to log method calls and their results. You will have to bind it to the methods you want it to listen to. It has one constructor argument:
WireBox comes bundled with three aspects that you can use in your applications and can be found in wirebox.system.aop.aspects
:
This aspect is a self-binding aspect that will surround methods with native Hibernate transaction blocks.
To use, just declare in your binder, overriding the self-binding is totally optional.
This aspect is a self-binding aspect that will surround methods with simple ColdFusion transaction blocks.
To use, just declare in your binder, overriding the self-binding is totally optional.
Name
Type
Required
Default
Description
logResults
boolean
false
true
Whether to log the results of method calls or not.
Aspect | Description |
CFTransaction | A simple ColdFusion transaction Aspect for WireBox |
HibernateTransaction | A cool annotation based Transaction Aspect for WireBox |
MethodLogger | A simple interceptor that logs method calls and their results |
ClassMatcher | MethodMatcher |
any | annotatedWith:transactional |
ClassMatcher | MethodMatcher |
any | annotatedWith:transactional |