• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

aspectran / aspectran / #4689

22 Oct 2025 10:21AM UTC coverage: 37.082% (-0.02%) from 37.101%
#4689

push

github

topframe
Refactor and Improve MyBatis Integration Module

This commit introduces a series of refactorings and improvements to the `com.aspectran.mybatis` package, enhancing code structure, usability, and documentation.
- **Refactored SqlSessionProvider**: The responsibility for dynamically registering AOP advice has been separated from `SqlSessionProvider`. This logic is now encapsulated in a helper class, `SqlSessionAdviceRegistrar`, which is used internally by `SqlSessionProvider`. This maintains the simple single-bean setup for users (e.g., `SqlSessionAgent`) while improving internal separation of concerns.
- **Reduced Duplication in SqlSessionAgent**: A private helper method has been introduced to eliminate repetitive `if/else` blocks related to the `autoParameters` feature, making the class more concise and maintainable.
- **Comprehensive Javadoc Improvements**: Documentation has been added or significantly improved for all classes in the package, including `SqlSessionProvider`, `SqlSessionAgent`, `SqlSessionFactoryBean`, `SqlMapperAccess`, `SqlSessionAdvice`, and `package-info.java`. This clarifies the role of each class, their configuration options, and how they interact.

15376 of 41465 relevant lines covered (37.08%)

0.37 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

91.36
/core/src/main/java/com/aspectran/core/context/asel/TokenizedExpression.java


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc