Home
last modified time | relevance | path

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

/external/guice/extensions/grapher/src/com/google/inject/grapher/
DDependencyEdge.java34 private final InjectionPoint injectionPoint; field in DependencyEdge
36 public DependencyEdge(NodeId fromId, NodeId toId, InjectionPoint injectionPoint) { in DependencyEdge() argument
38 this.injectionPoint = injectionPoint; in DependencyEdge()
42 return injectionPoint; in getInjectionPoint()
50 return super.equals(other) && Objects.equal(injectionPoint, other.injectionPoint); in equals()
54 return 31 * super.hashCode() + Objects.hashCode(injectionPoint); in hashCode()
59 + " injectionPoint=" + injectionPoint + "}"; in toString()
63 return new DependencyEdge(fromId, toId, injectionPoint); in copy()
DDefaultNodeCreator.java84 InjectionPoint injectionPoint = dependency.getInjectionPoint(); in newInstanceNode() local
86 if (injectionPoint != null) { in newInstanceNode()
87 members.add(injectionPoint.getMember()); in newInstanceNode()
101 for (InjectionPoint injectionPoint : binding.getInjectableMembers()) { in visit()
102 members.add(injectionPoint.getMember()); in visit()
/external/guice/core/src/com/google/inject/spi/
DDependency.java41 private final InjectionPoint injectionPoint; field in Dependency
46 Dependency(InjectionPoint injectionPoint, Key<T> key, boolean nullable, int parameterIndex) { in Dependency() argument
47 this.injectionPoint = injectionPoint; in Dependency()
66 for (InjectionPoint injectionPoint : injectionPoints) { in forInjectionPoints()
67 dependencies.addAll(injectionPoint.getDependencies()); in forInjectionPoints()
91 return injectionPoint; in getInjectionPoint()
104 return Objects.hashCode(injectionPoint, parameterIndex, key); in hashCode()
110 return Objects.equal(injectionPoint, dependency.injectionPoint) in equals()
121 if (injectionPoint != null) { in toString()
122 builder.append("@").append(injectionPoint); in toString()
DModuleAnnotatedMethodScanner.java53 InjectionPoint injectionPoint); in prepareMethod() argument
/external/guice/core/test/com/google/inject/spi/
DInjectionPointTest.java63 InjectionPoint injectionPoint = new InjectionPoint(typeLiteral, fooField, false); in testFieldInjectionPoint() local
64 assertSame(fooField, injectionPoint.getMember()); in testFieldInjectionPoint()
65 assertFalse(injectionPoint.isOptional()); in testFieldInjectionPoint()
66 assertEquals(getClass().getName() + ".foo", injectionPoint.toString()); in testFieldInjectionPoint()
67 assertEqualsBothWays(injectionPoint, new InjectionPoint(typeLiteral, fooField, false)); in testFieldInjectionPoint()
68 assertNotSerializable(injectionPoint); in testFieldInjectionPoint()
70 Dependency<?> dependency = getOnlyElement(injectionPoint.getDependencies()); in testFieldInjectionPoint()
86 InjectionPoint injectionPoint = new InjectionPoint(typeLiteral, barMethod, false); in testMethodInjectionPoint() local
87 assertSame(barMethod, injectionPoint.getMember()); in testMethodInjectionPoint()
88 assertFalse(injectionPoint.isOptional()); in testMethodInjectionPoint()
[all …]
DModuleAnnotatedMethodScannerTest.java159 InjectionPoint injectionPoint) { in prepareMethod() argument
204 Binder binder, Annotation rawAnnotation, Key<T> key, InjectionPoint injectionPoint) {
DElementsTest.java1176 InjectionPoint injectionPoint = constructorBinding.getConstructor(); in testBindToConstructor()
1177 assertEquals(aConstructor, injectionPoint.getMember()); in testBindToConstructor()
1178 assertEquals(new TypeLiteral<A>() {}, injectionPoint.getDeclaringType()); in testBindToConstructor()
/external/guice/core/src/com/google/inject/internal/
DSingleFieldInjector.java30 final InjectionPoint injectionPoint; field in SingleFieldInjector
34 public SingleFieldInjector(InjectorImpl injector, InjectionPoint injectionPoint, Errors errors) in SingleFieldInjector() argument
36 this.injectionPoint = injectionPoint; in SingleFieldInjector()
37 this.field = (Field) injectionPoint.getMember(); in SingleFieldInjector()
38 this.dependency = injectionPoint.getDependencies().get(0); in SingleFieldInjector()
46 return injectionPoint; in getInjectionPoint()
57 errors.withSource(injectionPoint).merge(e.getErrors()); in inject()
DSingleMethodInjector.java33 private final InjectionPoint injectionPoint; field in SingleMethodInjector
35 SingleMethodInjector(InjectorImpl injector, InjectionPoint injectionPoint, Errors errors) in SingleMethodInjector() argument
37 this.injectionPoint = injectionPoint; in SingleMethodInjector()
38 final Method method = (Method) injectionPoint.getMember(); in SingleMethodInjector()
40 parameterInjectors = injector.getParametersInjectors(injectionPoint.getDependencies(), errors); in SingleMethodInjector()
78 return injectionPoint;
98 errors.withSource(injectionPoint).errorInjectingMethod(cause);
DDefaultConstructionProxyFactory.java36 private final InjectionPoint injectionPoint; field in DefaultConstructionProxyFactory
41 DefaultConstructionProxyFactory(InjectionPoint injectionPoint) { in DefaultConstructionProxyFactory() argument
42 this.injectionPoint = injectionPoint; in DefaultConstructionProxyFactory()
47 final Constructor<T> constructor = (Constructor<T>) injectionPoint.getMember(); in create()
64 return injectionPoint; in create()
94 return injectionPoint; in create()
DProxyFactory.java55 private final InjectionPoint injectionPoint; field in ProxyFactory
67 ProxyFactory(InjectionPoint injectionPoint, Iterable<MethodAspect> methodAspects) { in ProxyFactory() argument
68 this.injectionPoint = injectionPoint; in ProxyFactory()
71 Constructor<T> constructor = (Constructor<T>) injectionPoint.getMember(); in ProxyFactory()
159 return new DefaultConstructionProxyFactory<T>(injectionPoint).create(); in create()
178 return new ProxyConstructor<T>(enhancer, injectionPoint, callbacks, interceptors); in create()
242 final InjectionPoint injectionPoint; field in ProxyFactory.ProxyConstructor
250 ProxyConstructor(Enhancer enhancer, InjectionPoint injectionPoint, Callback[] callbacks, in ProxyConstructor() argument
253 this.injectionPoint = injectionPoint; in ProxyConstructor()
254 this.constructor = (Constructor<T>) injectionPoint.getMember(); in ProxyConstructor()
[all …]
DMembersInjectorStore.java126 for (InjectionPoint injectionPoint : injectionPoints) { in getInjectors()
128 Errors errorsForMember = injectionPoint.isOptional() in getInjectors()
129 ? new Errors(injectionPoint) in getInjectors()
130 : errors.withSource(injectionPoint); in getInjectors()
131 SingleMemberInjector injector = injectionPoint.getMember() instanceof Field in getInjectors()
132 ? new SingleFieldInjector(this.injector, injectionPoint, errorsForMember) in getInjectors()
133 : new SingleMethodInjector(this.injector, injectionPoint, errorsForMember); in getInjectors()
DConstructorInjectorStore.java66 private <T> ConstructorInjector<T> createConstructor(InjectionPoint injectionPoint, Errors errors) in createConstructor() argument
71 = injector.getParametersInjectors(injectionPoint.getDependencies(), errors); in createConstructor()
75 .get(injectionPoint.getDeclaringType(), errors); in createConstructor()
82 ConstructionProxyFactory<T> factory = new ProxyFactory<T>(injectionPoint, methodAspects); in createConstructor()
DErrors.java792 InjectionPoint injectionPoint = dependency.getInjectionPoint();
793 if (injectionPoint != null) {
794 formatInjectionPoint(formatter, dependency, injectionPoint, elementSource);
824 InjectionPoint injectionPoint, ElementSource elementSource) {
825 Member member = injectionPoint.getMember();
829 dependency = injectionPoint.getDependencies().get(0);
839 formatSource(formatter, injectionPoint.getMember());
DInjectorShell.java264 InjectionPoint injectionPoint = dependency.getInjectionPoint(); in get() local
265 return injectionPoint == null in get()
267 : Logger.getLogger(injectionPoint.getMember().getDeclaringClass().getName()); in get()
DProviderMethodsModule.java59 Binder binder, Annotation annotation, Key<T> key, InjectionPoint injectionPoint) {
/external/guice/extensions/dagger-adapter/src/com/google/inject/daggeradapter/
DDaggerMethodScanner.java46 Binder binder, Annotation rawAnnotation, Key<T> key, InjectionPoint injectionPoint) { in prepareMethod() argument
47 Method providesMethod = (Method) injectionPoint.getMember(); in prepareMethod()
/external/guice/extensions/multibindings/src/com/google/inject/multibindings/
DMultibindingsScanner.java79 InjectionPoint injectionPoint) {
80 Method method = (Method) injectionPoint.getMember();
/external/guice/core/test/com/google/inject/internal/
DProxyFactoryTest.java48 InjectionPoint injectionPoint = InjectionPoint.forConstructorOf(Simple.class); in testSimpleCase() local
51 ProxyFactory<Simple> factory = new ProxyFactory<Simple>(injectionPoint, aspects); in testSimpleCase()
/external/guice/core/test/com/google/inject/util/
DOverrideModuleTest.java726 InjectionPoint injectionPoint) { in prepareMethod() argument