Class ContextManager.Locator

  • Enclosing interface:
    ContextManager

    public static final class ContextManager.Locator
    extends java.lang.Object
    A locator for the ContextManager which uses the ServiceLoader facility to be independent of any DI framework. This locator caches the internal reference and this is ok for production use; during tests, since multiple contexts are typically created and destroyed for each test, you should call reset() after each test has been completed.