You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Activate 5 dead frameworks and centralize framework/JRE registration
This commit activates 5 fully-implemented but unregistered frameworks that were
previously unreachable dead code, and eliminates significant code duplication
by centralizing component registration logic.
Activated Frameworks:
- ContainerCustomizer: Tomcat configuration customization for Spring Boot WAR apps
- JavaMemoryAssistant: Memory leak detection and heap dump management
- MetricWriter: Micrometer metrics export for Spring Boot applications
- ProtectAppSecurityProvider: Key management and security certificates
- SeekerSecurityProvider: Synopsys Seeker IAST agent
Code Duplication Eliminated:
- Created RegisterStandardFrameworks() method in framework.go to centralize
43 framework registrations previously duplicated in supply.go and finalize.go
- Created RegisterStandardJREs() method in jre.go to centralize 7 JRE
registrations previously duplicated in supply.go and finalize.go
- Removed ~146 lines of duplicate registration code across both phases
JRE Detection Logic Fixed:
- Fixed Registry.Detect() to return error when no JRE found (not nil)
- Fixed OpenJDK.Detect() to only detect when explicitly configured via env vars
- Added test coverage for explicit JRE selection (SapMachine over OpenJDK default)
- Updated tests to properly use SetDefault() mechanism
Impact:
- Net reduction: ~66 lines of code
- All 28 JRE unit tests pass
- All Java buildpack unit tests pass (containers, frameworks, supply, finalize)
- 81/87 integration tests pass (5 pre-existing Groovy failures unrelated to changes)
- No new dead code introduced
0 commit comments