@Test(expected = IllegalStateException.class) public void lazyGet_shouldFail_whenScopeIsClosed() { ScopeImpl scope = new ScopeImpl(""); Lazy<Foo> lazy = scope.getLazy(Foo.class); scope.close(); lazy.get(); }
@Override public <T> Lazy<T> getLazy(Class<T> clazz) { return getLazy(clazz, null); }
ScopeImpl extends ScopeNode { @Override public <T> Lazy<T> getLazy(Class<T> clazz) { return getLazy(clazz, null); } }
ScopeImpl extends ScopeNode { @Override public <T> Lazy<T> getLazy(Class<T> clazz) { return getLazy(clazz, null); } ScopeImpl(Object name); }
ScopeImpl extends ScopeNode { @Override public <T> Lazy<T> getLazy(Class<T> clazz) { return getLazy(clazz, null); } ScopeImpl(Object name); @Override T getInstance(Class<T> clazz); @Override T getInstance(Class<T> clazz, String name); @Override Provider<T> getProvider(Class<T> clazz); @Override Provider<T> getProvider(Class<T> clazz, String name); @Override Lazy<T> getLazy(Class<T> clazz); @Override Lazy<T> getLazy(Class<T> clazz, String name); @Override synchronized Scope installTestModules(Module... modules); @Override Scope installModules(Module... modules); @Override void inject(Object obj); @Override String toString(); @Override Scope openSubScope(Object subScopeName); @Override Scope openSubScope(Object subScopeName, ScopeConfig scopeConfig); @Override void release(); }
ScopeImpl extends ScopeNode { @Override public <T> Lazy<T> getLazy(Class<T> clazz) { return getLazy(clazz, null); } ScopeImpl(Object name); @Override T getInstance(Class<T> clazz); @Override T getInstance(Class<T> clazz, String name); @Override Provider<T> getProvider(Class<T> clazz); @Override Provider<T> getProvider(Class<T> clazz, String name); @Override Lazy<T> getLazy(Class<T> clazz); @Override Lazy<T> getLazy(Class<T> clazz, String name); @Override synchronized Scope installTestModules(Module... modules); @Override Scope installModules(Module... modules); @Override void inject(Object obj); @Override String toString(); @Override Scope openSubScope(Object subScopeName); @Override Scope openSubScope(Object subScopeName, ScopeConfig scopeConfig); @Override void release();  }