Home
last modified time | relevance | path

Searched refs:privateElements (Results 1 – 11 of 11) sorted by relevance

/external/guice/core/src/com/google/inject/util/
DModules.java181 PrivateElements privateElements = (PrivateElements) element; in configure() local
183 baseBinder.newPrivateBinder().withSource(privateElements.getSource()); in configure()
184 for (Key exposed : privateElements.getExposedKeys()) { in configure()
185 privateBinder.withSource(privateElements.getExposedSource(exposed)).expose(exposed); in configure()
188 baseElements = privateElements.getElements(); in configure()
219 public Void visit(PrivateElements privateElements) { in configure() argument
220 overriddenKeys.addAll(privateElements.getExposedKeys()); in configure()
221 return super.visit(privateElements); in configure()
251 void rewrite(Binder binder, PrivateElements privateElements, Set<Key<?>> keysToSkip) { in configure() argument
253 binder.withSource(privateElements.getSource()).newPrivateBinder(); in configure()
[all …]
/external/guice/core/src/com/google/inject/internal/
DExposedBindingImpl.java32 private final PrivateElements privateElements; field in ExposedBindingImpl
39 PrivateElements privateElements) { in ExposedBindingImpl() argument
41 this.privateElements = privateElements; in ExposedBindingImpl()
56 return privateElements; in getPrivateElements()
64 .add("privateElements", privateElements) in toString()
DExposedKeyFactory.java29 private final PrivateElements privateElements; field in ExposedKeyFactory
32 ExposedKeyFactory(Key<T> key, PrivateElements privateElements) { in ExposedKeyFactory() argument
34 this.privateElements = privateElements; in ExposedKeyFactory()
39 InjectorImpl privateInjector = (InjectorImpl) privateElements.getInjector(); in notify()
DInjectorShell.java81 private PrivateElementsImpl privateElements; field in InjectorShell.Builder
96 Builder privateElements(PrivateElements privateElements) { in privateElements() method in InjectorShell.Builder
97 this.privateElements = (PrivateElementsImpl) privateElements; in privateElements()
98 this.elements.addAll(privateElements.getElements()); in privateElements()
128 checkState(privateElements == null || parent != null, "PrivateElements with no parent"); in build()
145 if (privateElements != null) { in build()
146 privateElements.initInjector(injector); in build()
DPrivateElementProcessor.java37 public Boolean visit(PrivateElements privateElements) { in visit() argument
39 new InjectorShell.Builder().parent(injector).privateElements(privateElements); in visit()
DBindingProcessor.java240 public Boolean visit(PrivateElements privateElements) {
241 for (Key<?> key : privateElements.getExposedKeys()) {
242 bindExposed(privateElements, key);
247 private <T> void bindExposed(PrivateElements privateElements, Key<T> key) {
248 ExposedKeyFactory<T> exposedKeyFactory = new ExposedKeyFactory<>(key, privateElements);
253 privateElements.getExposedSource(key),
256 privateElements));
/external/guice/core/src/com/google/inject/spi/
DElements.java165 private final PrivateElementsImpl privateElements; field in Elements.RecordingBinder
185 this.privateElements = null; in RecordingBinder()
202 this.privateElements = prototype.privateElements; in RecordingBinder()
207 private RecordingBinder(RecordingBinder parent, PrivateElementsImpl privateElements) { in RecordingBinder() argument
211 this.elements = privateElements.getElementsMutable(); in RecordingBinder()
216 this.privateElements = privateElements; in RecordingBinder()
445 PrivateElementsImpl privateElements = new PrivateElementsImpl(getElementSource()); in newPrivateBinder() local
446 RecordingBinder binder = new RecordingBinder(this, privateElements); in newPrivateBinder()
448 elements.add(privateElements); in newPrivateBinder()
494 if (privateElements == null) { in exposeInternal()
[all …]
DDefaultElementVisitor.java80 public V visit(PrivateElements privateElements) { in visit() argument
81 return visitOther(privateElements); in visit()
/external/guice/extensions/servlet/test/com/google/inject/servlet/
DServletScopesTest.java196 PrivateElements privateElements = (PrivateElements) element; in indexBindings() local
197 Map<Key<?>, Binding<?>> privateBindings = indexBindings(privateElements.getElements()); in indexBindings()
198 for (Key<?> exposed : privateElements.getExposedKeys()) { in indexBindings()
/external/guice/core/test/com/google/inject/
DPrivateModuleTest.java579 PrivateElements privateElements = binding.getPrivateElements(); in testSpiAccess() local
582 privateElements.getExposedKeys()); in testSpiAccess()
584 privateElements.getExposedSource(Key.get(String.class, named("b"))).toString(), in testSpiAccess()
587 Injector privateInjector = privateElements.getInjector(); in testSpiAccess()
DScopesTest.java863 PrivateElements privateElements = (PrivateElements) element;
864 Map<Key<?>, Binding<?>> privateBindings = indexBindings(privateElements.getElements());
865 for (Key<?> exposed : privateElements.getExposedKeys()) {