Searched refs:binder (Results 1 - 25 of 222) sorted by relevance

123456789

/external/guice/core/src/com/google/inject/binder/
H A Dpackage-info.java21 package com.google.inject.binder
H A DAnnotatedConstantBindingBuilder.java17 package com.google.inject.binder;
H A DAnnotatedElementBuilder.java17 package com.google.inject.binder;
/external/guice/core/test/com/google/inject/
H A DModuleTest.java15 public void configure(Binder binder) { argument
16 binder.bind(X.class);
17 binder.install(new B());
18 binder.install(new C());
23 public void configure(Binder binder) { argument
24 binder.bind(Y.class);
25 binder.install(new D());
30 public void configure(Binder binder) { argument
31 binder.bind(Z.class);
32 binder
37 configure(Binder binder) argument
[all...]
/external/guice/core/src/com/google/inject/
H A DModule.java36 * Contributes bindings and other configurations for this module to {@code binder}.
42 void configure(Binder binder); argument
H A DPrivateModule.java21 import com.google.inject.binder.AnnotatedBindingBuilder;
22 import com.google.inject.binder.AnnotatedConstantBindingBuilder;
23 import com.google.inject.binder.AnnotatedElementBuilder;
24 import com.google.inject.binder.LinkedBindingBuilder;
91 /** Like abstract module, the binder of the current private module */
92 private PrivateBinder binder; field in class:PrivateModule
94 public final synchronized void configure(Binder binder) { argument
95 checkState(this.binder == null, "Re-entry is not allowed.");
98 this.binder = (PrivateBinder) binder
140 protected final PrivateBinder binder() { method in class:PrivateModule
[all...]
H A DAbstractModule.java22 import com.google.inject.binder.AnnotatedBindingBuilder;
23 import com.google.inject.binder.AnnotatedConstantBindingBuilder;
24 import com.google.inject.binder.LinkedBindingBuilder;
55 Binder binder; field in class:AbstractModule
58 checkState(this.binder == null, "Re-entry is not allowed.");
60 this.binder = checkNotNull(builder, "builder");
65 this.binder = null;
77 protected Binder binder() { method in class:AbstractModule
78 checkState(binder != null, "The binder ca
[all...]
/external/turbine/java/com/google/turbine/binder/env/
H A DEnv.java17 package com.google.turbine.binder.env;
19 import com.google.turbine.binder.sym.ClassSymbol;
20 import com.google.turbine.binder.sym.Symbol;
/external/turbine/java/com/google/turbine/binder/bound/
H A DHeaderBoundClass.java17 package com.google.turbine.binder.bound;
21 import com.google.turbine.binder.sym.ClassSymbol;
22 import com.google.turbine.binder.sym.TyVarSymbol;
H A DBoundClass.java17 package com.google.turbine.binder.bound;
20 import com.google.turbine.binder.sym.ClassSymbol;
H A DEnumConstantValue.java17 package com.google.turbine.binder.bound;
19 import com.google.turbine.binder.sym.FieldSymbol;
/external/turbine/java/com/google/turbine/binder/lookup/
H A DScope.java17 package com.google.turbine.binder.lookup;
H A DCanonicalSymbolResolver.java17 package com.google.turbine.binder.lookup;
19 import com.google.turbine.binder.sym.ClassSymbol;
H A DLookupResult.java17 package com.google.turbine.binder.lookup;
21 import com.google.turbine.binder.sym.ClassSymbol;
22 import com.google.turbine.binder.sym.Symbol;
/external/guice/core/src/com/google/inject/name/
H A DNames.java46 public static void bindProperties(Binder binder, Map<String, String> properties) { argument
47 binder = binder.skipSources(Names.class);
51 binder.bind(Key.get(String.class, new NamedImpl(key))).toInstance(value);
60 public static void bindProperties(Binder binder, Properties properties) { argument
61 binder = binder.skipSources(Names.class);
67 binder.bind(Key.get(String.class, new NamedImpl(propertyName))).toInstance(value);
/external/testng/src/test/java/test/guice/
H A DGuiceExampleModule.java10 public void configure(Binder binder) { argument
11 binder.bind(ISingleton.class).to(ExampleSingleton.class).in(Singleton.class);
/external/guice/core/src/com/google/inject/spi/
H A DElement.java56 * Writes this module element to the given binder (optional operation).
58 * @param binder to apply configuration element to
62 void applyTo(Binder binder); argument
H A DDisableCircularProxiesOption.java40 public void applyTo(Binder binder) { argument
41 binder.withSource(getSource()).disableCircularProxies();
H A DRequireAtInjectOnConstructorsOption.java41 public void applyTo(Binder binder) { argument
42 binder.withSource(getSource()).requireAtInjectOnConstructors();
H A DRequireExactBindingAnnotationsOption.java40 public void applyTo(Binder binder) { argument
41 binder.withSource(getSource()).requireExactBindingAnnotations();
/external/turbine/java/com/google/turbine/binder/sym/
H A DSymbol.java17 package com.google.turbine.binder.sym;
/external/guice/core/src/com/google/inject/internal/
H A DExposureBuilder.java22 import com.google.inject.binder.AnnotatedElementBuilder;
27 * For private binder's expose() method.
30 private final Binder binder; field in class:ExposureBuilder
34 public ExposureBuilder(Binder binder, Object source, Key<T> key) { argument
35 this.binder = binder;
42 binder.addError(AbstractBindingBuilder.ANNOTATION_ALREADY_SPECIFIED);
H A DAbstractBindingBuilder.java51 protected final Binder binder; field in class:AbstractBindingBuilder
54 public AbstractBindingBuilder(Binder binder, List<Element> elements, Object source, Key<T> key) { argument
55 this.binder = binder;
111 binder.addError(IMPLEMENTATION_ALREADY_SET);
117 binder.addError(ANNOTATION_ALREADY_SPECIFIED);
124 binder.addError(SINGLE_INSTANCE_AND_SCOPE);
129 binder.addError(SCOPE_ALREADY_SET);
/external/guice/extensions/multibindings/src/com/google/inject/multibindings/
H A DMultibindingsScanner.java48 * {@code binder().scanModulesForAnnotatedMethods(MultibindingsScanner.scanner())}.
53 binder().scanModulesForAnnotatedMethods(Scanner.INSTANCE);
78 public <T> Key<T> prepareMethod(Binder binder, Annotation annotation, Key<T> key, argument
81 AnnotationOrError mapKey = findMapKeyAnnotation(binder, method);
84 binder.addError("Found a MapKey annotation on non map binding at %s.", method);
86 return Multibinder.newRealSetBinder(binder, key).getKeyForNewItem();
94 binder.addError("No MapKey found for map binding at %s.", method);
98 return MapBinder.newRealMapBinder(binder, typeAndValue.type, key)
102 binder.addError("Found a MapKey annotation on non map binding at %s.", method);
106 return OptionalBinder.newRealOptionalBinder(binder, ke
132 findMapKeyAnnotation(Binder binder, Method method) argument
[all...]
/external/guice/extensions/dagger-adapter/src/com/google/inject/daggeradapter/
H A DDaggerMethodScanner.java46 Binder binder, Annotation rawAnnotation, Key<T> key, InjectionPoint injectionPoint) {
54 binder.addError("Map bindings are not yet supported.");
56 return processSetBinding(binder, key);
58 binder.addError(Type.SET_VALUES.name() + " contributions are not supported by Guice.",
62 binder.addError("Unknown @Provides type " + annotation.type() + ".", providesMethod);
67 private static <T> Key<T> processSetBinding(Binder binder, Key<T> key) { argument
68 Multibinder<T> setBinder = Multibinder.newSetBinder(binder, key.getTypeLiteral());
45 prepareMethod( Binder binder, Annotation rawAnnotation, Key<T> key, InjectionPoint injectionPoint) argument

Completed in 369 milliseconds

123456789