| Summary: | Allow adapter binding warnings to be disabled | ||
|---|---|---|---|
| Product: | [Tools] GEF | Reporter: | Colin Sharples <ctg> |
| Component: | GEF Common | Assignee: | gef-inbox <gef-inbox> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | matthias.wienand |
| Version: | 1.0.0 | ||
| Target Milestone: | 4.1.0 (Neon.1) RC1 | ||
| Hardware: | PC | ||
| OS: | Windows 10 | ||
| Whiteboard: | |||
|
Description
Colin Sharples
I added a LoggingMode enum that can be passed as a parameter to AdapterInjectionSupport, AdaptableTypeListener, and AdapterInjector upon construction. The LoggingMode determines if information and warning messages are printed or suppressed. If in LoggingMode#DEVELOPMENT, all messages are printed. If in LoggingMode#PRODUCTION, only error messages are printed. In order to use the parameter, you can override the MvcModule#enableAdapterMapInjection() method that creates and installs (AbstractModule#install(Module)) a new AdapterInjectionSupport. For the MVC Logo Example, as well as the Zest Graph Example, the LoggingMode#PRODUCTION is now used, so that neither information nor warning messages should be printed when starting one of these examples. The code is published on the master branch and was ported back to R4_0_maintenance, therefore, I resolve this ticket as fixed for 5.0.0 M2 / 4.1.0 RC1. |