Home
last modified time | relevance | path

Searched refs:scopeAnnotation (Results 1 – 20 of 20) sorted by relevance

/external/dagger2/java/dagger/model/
DScope.java41 public final AnnotationMirror scopeAnnotation() { in scopeAnnotation() method in Scope
47 return MoreTypes.asTypeElement(scopeAnnotation().getAnnotationType()); in scopeAnnotationElement()
53 public static Scope scope(AnnotationMirror scopeAnnotation) { in scope() argument
54 checkArgument(isScope(scopeAnnotation)); in scope()
55 return new AutoValue_Scope(AnnotationMirrors.equivalence().wrap(scopeAnnotation)); in scope()
61 public static boolean isScope(AnnotationMirror scopeAnnotation) { in isScope() argument
62 return isScope(MoreElements.asType(scopeAnnotation.getAnnotationType().asElement())); in isScope()
94 return scopeAnnotation().toString(); in toString()
/external/guice/core/src/com/google/inject/internal/
DProviderMethod.java62 Class<? extends Annotation> scopeAnnotation, in create() argument
72 key, fc, method, instance, dependencies, scopeAnnotation, annotation); in create()
86 key, method, instance, dependencies, scopeAnnotation, annotation); in create()
93 private final Class<? extends Annotation> scopeAnnotation; field in ProviderMethod
109 Class<? extends Annotation> scopeAnnotation, in ProviderMethod() argument
115 this.scopeAnnotation = scopeAnnotation; in ProviderMethod()
151 if (scopeAnnotation != null) { in configure()
152 binder.bind(key).toProvider(this).in(scopeAnnotation); in configure()
253 Class<? extends Annotation> scopeAnnotation, in FastClassProviderMethod() argument
255 super(key, method, instance, dependencies, scopeAnnotation, annotation); in FastClassProviderMethod()
[all …]
DAbstractBindingBuilder.java87 public void in(final Class<? extends Annotation> scopeAnnotation) { in in() argument
88 checkNotNull(scopeAnnotation, "scopeAnnotation"); in in()
90 setBinding(getBinding().withScoping(Scoping.forAnnotation(scopeAnnotation))); in in()
DScoping.java309 Class<? extends Annotation> scopeAnnotation = scoping.getScopeAnnotation();
310 if (scopeAnnotation == null) {
314 ScopeBinding scope = injector.state.getScopeBinding(scopeAnnotation);
319 errors.scopeNotFound(scopeAnnotation);
DConstructorBindingImpl.java127 Class<? extends Annotation> scopeAnnotation = findScopeAnnotation(errors, annotatedType); in create() local
128 if (scopeAnnotation != null) { in create()
131 Scoping.forAnnotation(scopeAnnotation), injector, errors.withSource(rawType)); in create()
DAnnotations.java295 Class<? extends Annotation> scopeAnnotation = findScopeAnnotation(errors, type);
296 if (scopeAnnotation != null
299 errors.withSource(type).scopeAnnotationOnAbstractType(scopeAnnotation, type, source);
DIndexer.java187 public Object visitScopeAnnotation(Class<? extends Annotation> scopeAnnotation) { in visitScopeAnnotation() argument
188 return scopeAnnotation; in visitScopeAnnotation()
DErrors.java346 public Errors scopeNotFound(Class<? extends Annotation> scopeAnnotation) { in scopeNotFound() argument
347 return addMessage("No scope is bound to %s.", scopeAnnotation); in scopeNotFound()
351 Class<? extends Annotation> scopeAnnotation, Class<?> type, Object source) { in scopeAnnotationOnAbstractType() argument
355 type, scopeAnnotation, convert(source)); in scopeAnnotationOnAbstractType()
DProviderMethodsModule.java267 Class<? extends Annotation> scopeAnnotation = in createProviderMethod() local
277 scopeAnnotation, in createProviderMethod()
/external/guice/extensions/throwingproviders/src/com/google/inject/throwingproviders/
DCheckedProviderMethod.java44 private final Class<? extends Annotation> scopeAnnotation; field in CheckedProviderMethod
60 Class<? extends Annotation> scopeAnnotation, in CheckedProviderMethod() argument
65 this.scopeAnnotation = scopeAnnotation; in CheckedProviderMethod()
90 if (scopeAnnotation != null) { in configure()
91 sbbuilder.in(scopeAnnotation); in configure()
DCheckedProviderMethodsModule.java118 Class<? extends Annotation> scopeAnnotation = in createProviderMethod() local
131 scopeAnnotation, in createProviderMethod()
/external/guice/core/src/com/google/inject/
DScopes.java69 public Boolean visitScopeAnnotation(Class<? extends Annotation> scopeAnnotation) {
70 return scopeAnnotation == Singleton.class
71 || scopeAnnotation == javax.inject.Singleton.class;
132 Binding<?> binding, final Scope scope, final Class<? extends Annotation> scopeAnnotation) { in isScoped() argument
144 return visitedAnnotation == scopeAnnotation; in isScoped()
DAbstractModule.java77 protected void bindScope(Class<? extends Annotation> scopeAnnotation, Scope scope) { in bindScope() argument
78 binder().bindScope(scopeAnnotation, scope); in bindScope()
DPrivateModule.java145 protected final void bindScope(Class<? extends Annotation> scopeAnnotation, Scope scope) { in bindScope() argument
146 binder().bindScope(scopeAnnotation, scope); in bindScope()
/external/guice/core/src/com/google/inject/binder/
DScopedBindingBuilder.java30 void in(Class<? extends Annotation> scopeAnnotation); in in() argument
/external/guice/core/src/com/google/inject/spi/
DBindingScopingVisitor.java45 V visitScopeAnnotation(Class<? extends Annotation> scopeAnnotation); in visitScopeAnnotation() argument
DDefaultBindingScopingVisitor.java49 public V visitScopeAnnotation(Class<? extends Annotation> scopeAnnotation) { in visitScopeAnnotation() argument
/external/guice/core/test/com/google/inject/spi/
DFailingBindingScopingVisitor.java36 public Void visitScopeAnnotation(Class<? extends Annotation> scopeAnnotation) { in visitScopeAnnotation() argument
/external/dagger2/java/dagger/internal/codegen/validation/
DInjectValidator.java175 builder.addError(scopeErrorMsg, constructorElement, scope.scopeAnnotation()); in validateConstructorUncached()
232 scope.scopeAnnotation()); in validateConstructorUncached()
239 scope.scopeAnnotation()); in validateConstructorUncached()
DBindingElementValidator.java366 report.addError(error, element, scope.scopeAnnotation()); in checkScopes()