What problem does it solve?
This skill helps developers apply cross-cutting concerns such as logging, transactions, security, caching, and tracing to methods without modifying business code, reducing duplication and centralizing cross-cutting logic.
Core Features & Use Cases
- Aspect creation: Implement MethodInterceptor aspects with full WireBox dependency injection and implement invokeMethod with proper proceed semantics.
- Registration & binding: Register aspects with mapAspect, bind them using bindAspect with the Matcher DSL, or rely on classMatcher/methodMatcher annotations for auto-binding.
- Built-in support: Leverage ready-made CFTransaction, HibernateTransaction, and MethodLogger aspects for transactional and logging needs.
- Use case: Add transactional boundaries and centralized logging to service layer methods across a ColdBox or standalone WireBox application.
Quick Start
Enable the Mixer listener in your WireBox binder, map a MethodLogger aspect, and bind it to the target service classes to log method calls and results.