The "Java Service Locator Information Manager" (JSlim) is an open source 'Service Locator' pattern implementation. Prior to the popularity of dependency injection, GTC championed this early approach for enabling resource-dependent object substitution with shallow Mocks for (presumably) JUnit testing. A dynamically loaded XML descriptor document dictates whether JSlim returns a "real" or Mock object.

GTC Artifacts

The benefits of JSlim are best realized by reviewing the annotated example descriptor document. Additional resources include the Exported (Public) - API, Complete - API, UML Documentation and Unit Test Results.
The "jslim.jar" is available for download on Logo .

© 2015 GTC