NonExtendableBrokerView<S> getScopedView(final S scope) throws NoSuchScopeException { return new NonExtendableBrokerView<>(this.brokerCache, getWrappedScope(scope), this.scopedConfigs, Maps.filterKeys(this.ancestorScopesByType, new Predicate<S>() { @Override public boolean apply(@Nullable S input) { return SharedResourcesBrokerUtils.isScopeTypeAncestor(scope, input); } })); }
@Override public <T, K extends SharedResourceKey> T getSharedResourceAtScope(SharedResourceFactory<T, K, S> factory, K key, S scope) throws NotConfiguredException, NoSuchScopeException { try { return this.brokerCache.getScoped(factory, key, getWrappedScope(scope), this); } catch (ExecutionException ee) { throw new RuntimeException(ee); } }
@Override public <T, K extends SharedResourceKey> void bindSharedResourceAtScope(SharedResourceFactory<T, K, S> factory, K key, S scopeType, T instance) throws NoSuchScopeException { this.brokerCache.put(factory, key, getWrappedScope(scopeType), instance); }
@Override public ScopeInstance<S> getScope(S scopeType) throws NoSuchScopeException { return getWrappedScope(scopeType).getScope(); }
@Override public ScopeWrapper<S> call() throws Exception { return broker.getWrappedScope(factory.getAutoScope(broker, broker.getConfigView(null, key, factory.getName()))); } });
broker.getWrappedScope(resourceCoordinate.getScope()), broker); } catch (NoSuchScopeException nsse) { throw new RuntimeException(String
@Override public <T, K extends SharedResourceKey> void bindSharedResourceAtScope(SharedResourceFactory<T, K, S> factory, K key, S scopeType, T instance) throws NoSuchScopeException { this.brokerCache.put(factory, key, getWrappedScope(scopeType), instance); }
@Override public <T, K extends SharedResourceKey> T getSharedResourceAtScope(SharedResourceFactory<T, K, S> factory, K key, S scope) throws NotConfiguredException, NoSuchScopeException { try { return this.brokerCache.getScoped(factory, key, getWrappedScope(scope), this); } catch (ExecutionException ee) { throw new RuntimeException(ee); } }
NonExtendableBrokerView<S> getScopedView(final S scope) throws NoSuchScopeException { return new NonExtendableBrokerView<>(this.brokerCache, getWrappedScope(scope), this.scopedConfigs, Maps.filterKeys(this.ancestorScopesByType, new Predicate<S>() { @Override public boolean apply(@Nullable S input) { return SharedResourcesBrokerUtils.isScopeTypeAncestor(scope, input); } })); }
@Override public ScopeInstance<S> getScope(S scopeType) throws NoSuchScopeException { return getWrappedScope(scopeType).getScope(); }
@Override public ScopeWrapper<S> call() throws Exception { return broker.getWrappedScope(factory.getAutoScope(broker, broker.getConfigView(null, key, factory.getName()))); } });
broker.getWrappedScope(resourceCoordinate.getScope()), broker); } catch (NoSuchScopeException nsse) { throw new RuntimeException(String