Home
last modified time | relevance | path

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

/external/guice/core/src/com/google/inject/internal/
DDefaultConstructionProxyFactory.java35 private final InjectionPoint injectionPoint; field in DefaultConstructionProxyFactory
38 DefaultConstructionProxyFactory(InjectionPoint injectionPoint) { in DefaultConstructionProxyFactory() argument
39 this.injectionPoint = injectionPoint; in DefaultConstructionProxyFactory()
45 final Constructor<T> constructor = (Constructor<T>) injectionPoint.getMember(); in create()
56 return new FastClassProxy<T>(injectionPoint, constructor, fc, index); in create()
63 return new ReflectiveProxy<T>(injectionPoint, constructor); in create()
69 final InjectionPoint injectionPoint; field in DefaultConstructionProxyFactory.FastClassProxy
75 InjectionPoint injectionPoint, in FastClassProxy() argument
79 this.injectionPoint = injectionPoint; in FastClassProxy()
94 return injectionPoint; in getInjectionPoint()
[all …]
DSingleFieldInjector.java27 final InjectionPoint injectionPoint; field in SingleFieldInjector
31 public SingleFieldInjector(InjectorImpl injector, InjectionPoint injectionPoint, Errors errors) in SingleFieldInjector() argument
33 this.injectionPoint = injectionPoint; in SingleFieldInjector()
34 this.field = (Field) injectionPoint.getMember(); in SingleFieldInjector()
35 this.dependency = injectionPoint.getDependencies().get(0); in SingleFieldInjector()
44 return injectionPoint; in getInjectionPoint()
DSingleMethodInjector.java29 private final InjectionPoint injectionPoint; field in SingleMethodInjector
31 SingleMethodInjector(InjectorImpl injector, InjectionPoint injectionPoint, Errors errors) in SingleMethodInjector() argument
33 this.injectionPoint = injectionPoint; in SingleMethodInjector()
34 final Method method = (Method) injectionPoint.getMember(); in SingleMethodInjector()
36 parameterInjectors = injector.getParametersInjectors(injectionPoint.getDependencies(), errors); in SingleMethodInjector()
77 return injectionPoint;
90 throw InternalProvisionException.errorInjectingMethod(cause).addSource(injectionPoint);
DProxyFactory.java51 private final InjectionPoint injectionPoint; field in ProxyFactory
63 ProxyFactory(InjectionPoint injectionPoint, Iterable<MethodAspect> methodAspects) { in ProxyFactory() argument
64 this.injectionPoint = injectionPoint; in ProxyFactory()
67 Constructor<T> constructor = (Constructor<T>) injectionPoint.getMember(); in ProxyFactory()
156 return new DefaultConstructionProxyFactory<T>(injectionPoint).create(); in create()
175 return new ProxyConstructor<T>(enhancer, injectionPoint, callbacks, interceptors); in create()
239 final InjectionPoint injectionPoint; field in ProxyFactory.ProxyConstructor
250 InjectionPoint injectionPoint, in ProxyConstructor() argument
254 this.injectionPoint = injectionPoint; in ProxyConstructor()
255 this.constructor = (Constructor<T>) injectionPoint.getMember(); in ProxyConstructor()
[all …]
DMembersInjectorStore.java119 for (InjectionPoint injectionPoint : injectionPoints) { in getInjectors()
122 injectionPoint.isOptional() in getInjectors()
123 ? new Errors(injectionPoint) in getInjectors()
124 : errors.withSource(injectionPoint); in getInjectors()
126 injectionPoint.getMember() instanceof Field in getInjectors()
127 ? new SingleFieldInjector(this.injector, injectionPoint, errorsForMember) in getInjectors()
128 : new SingleMethodInjector(this.injector, injectionPoint, errorsForMember); in getInjectors()
DConstructorInjectorStore.java64 private <T> ConstructorInjector<T> createConstructor(InjectionPoint injectionPoint, Errors errors) in createConstructor() argument
69 injector.getParametersInjectors(injectionPoint.getDependencies(), errors); in createConstructor()
74 injector.membersInjectorStore.get(injectionPoint.getDeclaringType(), errors); in createConstructor()
82 ConstructionProxyFactory<T> factory = new ProxyFactory<>(injectionPoint, methodAspects); in createConstructor()
DMessages.java227 InjectionPoint injectionPoint = dependency.getInjectionPoint(); in formatSource() local
228 if (injectionPoint != null) { in formatSource()
229 formatInjectionPoint(formatter, dependency, injectionPoint, elementSource); in formatSource()
261 InjectionPoint injectionPoint, in formatInjectionPoint() argument
263 Member member = injectionPoint.getMember(); in formatInjectionPoint()
267 dependency = injectionPoint.getDependencies().get(0); in formatInjectionPoint()
276 formatSource(formatter, injectionPoint.getMember()); in formatInjectionPoint()
DInjectorShell.java278 InjectionPoint injectionPoint = dependency.getInjectionPoint(); in get() local
279 return injectionPoint == null in get()
281 : Logger.getLogger(injectionPoint.getMember().getDeclaringClass().getName()); in get()
DProvidesMethodScanner.java58 Binder binder, Annotation annotation, Key<T> key, InjectionPoint injectionPoint) { in prepareMethod() argument
59 Method method = (Method) injectionPoint.getMember(); in prepareMethod()
/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()
51 return super.equals(other) && Objects.equal(injectionPoint, other.injectionPoint); in equals()
56 return 31 * super.hashCode() + Objects.hashCode(injectionPoint); in hashCode()
66 + injectionPoint in toString()
72 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()
102 for (InjectionPoint injectionPoint : binding.getInjectableMembers()) { in visit()
103 members.add(injectionPoint.getMember()); in visit()
/external/guice/core/src/com/google/inject/spi/
DDependency.java40 private final InjectionPoint injectionPoint; field in Dependency
45 Dependency(InjectionPoint injectionPoint, Key<T> key, boolean nullable, int parameterIndex) { in Dependency() argument
46 this.injectionPoint = injectionPoint; in Dependency()
63 for (InjectionPoint injectionPoint : injectionPoints) { in forInjectionPoints()
64 dependencies.addAll(injectionPoint.getDependencies()); in forInjectionPoints()
84 return injectionPoint; in getInjectionPoint()
98 return Objects.hashCode(injectionPoint, parameterIndex, key); in hashCode()
105 return Objects.equal(injectionPoint, dependency.injectionPoint) in equals()
117 if (injectionPoint != null) { in toString()
118 builder.append("@").append(injectionPoint); in toString()
DModuleAnnotatedMethodScanner.java52 Binder binder, Annotation annotation, Key<T> key, 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()
92 InjectionPoint injectionPoint = new InjectionPoint(typeLiteral, barMethod, false); in testMethodInjectionPoint() local
93 assertSame(barMethod, injectionPoint.getMember()); in testMethodInjectionPoint()
94 assertFalse(injectionPoint.isOptional()); in testMethodInjectionPoint()
[all …]
DModuleAnnotatedMethodScannerTest.java188 Binder binder, Annotation annotation, Key<T> key, InjectionPoint injectionPoint) { in prepareMethod() argument
236 Binder binder, Annotation rawAnnotation, Key<T> key, InjectionPoint injectionPoint) {
DElementsTest.java1236 InjectionPoint injectionPoint = constructorBinding.getConstructor(); in testBindToConstructor()
1237 assertEquals(aConstructor, injectionPoint.getMember()); in testBindToConstructor()
1238 assertEquals(new TypeLiteral<A>() {}, injectionPoint.getDeclaringType()); in testBindToConstructor()
/external/guice/extensions/dagger-adapter/src/com/google/inject/daggeradapter/
DDaggerMethodScanner.java51 Binder binder, Annotation rawAnnotation, Key<T> key, InjectionPoint injectionPoint) { in prepareMethod() argument
52 Method providesMethod = (Method) injectionPoint.getMember(); in prepareMethod()
/external/guice/core/test/com/google/inject/internal/
DProxyFactoryTest.java43 InjectionPoint injectionPoint = InjectionPoint.forConstructorOf(Simple.class); in testSimpleCase() local
46 ProxyFactory<Simple> factory = new ProxyFactory<>(injectionPoint, aspects); in testSimpleCase()
/external/guice/core/src/com/google/inject/multibindings/
DMultibindingsScanner.java70 Binder binder, Annotation annotation, Key<T> key, InjectionPoint injectionPoint) { in scanner() argument
/external/guice/core/test/com/google/inject/util/
DOverrideModuleTest.java851 Binder binder, Annotation annotation, Key<T> key, InjectionPoint injectionPoint) { in prepareMethod() argument