Home
last modified time | relevance | path

Searched refs:InjectionPoint (Results 1 – 25 of 48) sorted by relevance

12

/external/guice/core/test/com/google/inject/spi/
DInjectionPointTest.java36 import com.google.inject.spi.InjectionPoint.Signature;
63 InjectionPoint injectionPoint = new InjectionPoint(typeLiteral, fooField, false); in testFieldInjectionPoint()
67 assertEqualsBothWays(injectionPoint, new InjectionPoint(typeLiteral, fooField, false)); in testFieldInjectionPoint()
85 getOnlyElement(new InjectionPoint(typeLiteral, fooField, false).getDependencies())); in testFieldInjectionPoint()
92 InjectionPoint injectionPoint = new InjectionPoint(typeLiteral, barMethod, false); in testMethodInjectionPoint()
96 assertEqualsBothWays(injectionPoint, new InjectionPoint(typeLiteral, barMethod, false)); in testMethodInjectionPoint()
114 getOnlyElement(new InjectionPoint(typeLiteral, barMethod, false).getDependencies())); in testMethodInjectionPoint()
122 InjectionPoint injectionPoint = new InjectionPoint(typeLiteral, constructor); in testConstructorInjectionPoint()
126 assertEqualsBothWays(injectionPoint, new InjectionPoint(typeLiteral, constructor)); in testConstructorInjectionPoint()
143 dependency, getOnlyElement(new InjectionPoint(typeLiteral, constructor).getDependencies())); in testConstructorInjectionPoint()
[all …]
/external/guice/core/src/com/google/inject/spi/
DInjectionPoint.java61 public final class InjectionPoint { class
63 private static final Logger logger = Logger.getLogger(InjectionPoint.class.getName());
70 InjectionPoint(TypeLiteral<?> declaringType, Method method, boolean optional) { in InjectionPoint() method in InjectionPoint
77 InjectionPoint(TypeLiteral<?> declaringType, Constructor<?> constructor) { in InjectionPoint() method in InjectionPoint
85 InjectionPoint(TypeLiteral<?> declaringType, Field field, boolean optional) { in InjectionPoint() method in InjectionPoint
186 return o instanceof InjectionPoint in equals()
187 && member.equals(((InjectionPoint) o).member) in equals()
188 && declaringType.equals(((InjectionPoint) o).declaringType); in equals()
209 public static <T> InjectionPoint forConstructor(Constructor<T> constructor) { in forConstructor()
210 return new InjectionPoint(TypeLiteral.get(constructor.getDeclaringClass()), constructor); in forConstructor()
[all …]
DDependency.java40 private final InjectionPoint injectionPoint;
45 Dependency(InjectionPoint injectionPoint, Key<T> key, boolean nullable, int parameterIndex) { in Dependency()
61 public static Set<Dependency<?>> forInjectionPoints(Set<InjectionPoint> injectionPoints) { in forInjectionPoints()
63 for (InjectionPoint injectionPoint : injectionPoints) { in forInjectionPoints()
83 public InjectionPoint getInjectionPoint() { in getInjectionPoint()
DConstructorBinding.java35 InjectionPoint getConstructor(); in getConstructor()
44 Set<InjectionPoint> getInjectableMembers(); in getInjectableMembers()
DStaticInjectionRequest.java66 public Set<InjectionPoint> getInjectionPoints() throws ConfigurationException { in getInjectionPoints()
67 return InjectionPoint.forStaticMethodsAndFields(type); in getInjectionPoints()
/external/guice/core/src/com/google/inject/internal/
DDefaultConstructionProxyFactory.java21 import com.google.inject.spi.InjectionPoint;
35 private final InjectionPoint injectionPoint;
38 DefaultConstructionProxyFactory(InjectionPoint injectionPoint) { in DefaultConstructionProxyFactory()
69 final InjectionPoint injectionPoint;
75 InjectionPoint injectionPoint, in FastClassProxy()
93 public InjectionPoint getInjectionPoint() { in getInjectionPoint()
112 final InjectionPoint injectionPoint;
114 ReflectiveProxy(InjectionPoint injectionPoint, Constructor<T> constructor) { in ReflectiveProxy()
135 public InjectionPoint getInjectionPoint() { in getInjectionPoint()
DConstructorBindingImpl.java34 import com.google.inject.spi.InjectionPoint;
47 private final InjectionPoint constructorInjectionPoint;
56 InjectionPoint constructorInjectionPoint) { in ConstructorBindingImpl()
66 InjectionPoint constructorInjectionPoint, in ConstructorBindingImpl()
67 Set<InjectionPoint> injectionPoints) { in ConstructorBindingImpl()
85 InjectionPoint constructorInjector, in create()
115 constructorInjector = InjectionPoint.forConstructorOf(key.getTypeLiteral()); in create()
165 InjectionPoint getInternalConstructor() { in getInternalConstructor()
175 ImmutableSet.Builder<InjectionPoint> builder = ImmutableSet.builder(); in getInternalDependencies()
182 InjectionPoint.forInstanceMethodsAndFields( in getInternalDependencies()
[all …]
DConstructorInjectorStore.java22 import com.google.inject.spi.InjectionPoint;
32 private final FailableCache<InjectionPoint, ConstructorInjector<?>> cache =
33 new FailableCache<InjectionPoint, ConstructorInjector<?>>() {
35 protected ConstructorInjector<?> create(InjectionPoint constructorInjector, Errors errors)
46 public ConstructorInjector<?> get(InjectionPoint constructorInjector, Errors errors) in get()
60 boolean remove(InjectionPoint ip) { in remove()
64 private <T> ConstructorInjector<T> createConstructor(InjectionPoint injectionPoint, Errors errors) in createConstructor()
DBindingBuilder.java30 import com.google.inject.spi.InjectionPoint;
86 Set<InjectionPoint> injectionPoints; in toInstance()
89 injectionPoints = InjectionPoint.forInstanceMethodsAndFields(instance.getClass()); in toInstance()
116 Set<InjectionPoint> injectionPoints; in toProvider()
118 injectionPoints = InjectionPoint.forInstanceMethodsAndFields(provider.getClass()); in toProvider()
170 Set<InjectionPoint> injectionPoints; in toConstructor()
172 injectionPoints = InjectionPoint.forInstanceMethodsAndFields(type); in toConstructor()
179 InjectionPoint constructorPoint = InjectionPoint.forConstructor(constructor, type); in toConstructor()
DSingleFieldInjector.java21 import com.google.inject.spi.InjectionPoint;
27 final InjectionPoint injectionPoint;
31 public SingleFieldInjector(InjectorImpl injector, InjectionPoint injectionPoint, Errors errors) in SingleFieldInjector()
43 public InjectionPoint getInjectionPoint() { in getInjectionPoint()
DInstanceBindingImpl.java27 import com.google.inject.spi.InjectionPoint;
34 final ImmutableSet<InjectionPoint> injectionPoints;
41 Set<InjectionPoint> injectionPoints, in InstanceBindingImpl()
49 Object source, Key<T> key, Scoping scoping, Set<InjectionPoint> injectionPoints, T instance) { in InstanceBindingImpl()
66 public Set<InjectionPoint> getInjectionPoints() { in getInjectionPoints()
DMembersInjectorStore.java24 import com.google.inject.spi.InjectionPoint;
86 Set<InjectionPoint> injectionPoints; in createWithListeners()
88 injectionPoints = InjectionPoint.forInstanceMethodsAndFields(type); in createWithListeners()
117 Set<InjectionPoint> injectionPoints, Errors errors) { in getInjectors()
119 for (InjectionPoint injectionPoint : injectionPoints) { in getInjectors()
DSingleMethodInjector.java20 import com.google.inject.spi.InjectionPoint;
29 private final InjectionPoint injectionPoint;
31 SingleMethodInjector(InjectorImpl injector, InjectionPoint injectionPoint, Errors errors) in SingleMethodInjector()
76 public InjectionPoint getInjectionPoint() {
DProviderInstanceBindingImpl.java28 import com.google.inject.spi.InjectionPoint;
37 final ImmutableSet<InjectionPoint> injectionPoints;
46 Set<InjectionPoint> injectionPoints) { in ProviderInstanceBindingImpl()
56 Set<InjectionPoint> injectionPoints, in ProviderInstanceBindingImpl()
84 public Set<InjectionPoint> getInjectionPoints() { in getInjectionPoints()
DConstructorInjector.java22 import com.google.inject.spi.InjectionPoint;
34 private final ImmutableSet<InjectionPoint> injectableMembers;
40 Set<InjectionPoint> injectableMembers, in ConstructorInjector()
50 public ImmutableSet<InjectionPoint> getInjectableMembers() { in getInjectableMembers()
DProxyFactory.java26 import com.google.inject.spi.InjectionPoint;
51 private final InjectionPoint injectionPoint;
63 ProxyFactory(InjectionPoint injectionPoint, Iterable<MethodAspect> methodAspects) { in ProxyFactory()
239 final InjectionPoint injectionPoint;
250 InjectionPoint injectionPoint, in ProxyConstructor()
274 public InjectionPoint getInjectionPoint() { in getInjectionPoint()
DSingleMemberInjector.java19 import com.google.inject.spi.InjectionPoint;
25 InjectionPoint getInjectionPoint(); in getInjectionPoint()
DInjectionRequestProcessor.java23 import com.google.inject.spi.InjectionPoint;
54 Set<InjectionPoint> injectionPoints; in visit()
99 Set<InjectionPoint> injectionPoints; in validate()
DConstructionProxy.java20 import com.google.inject.spi.InjectionPoint;
37 InjectionPoint getInjectionPoint(); in getInjectionPoint()
DInjectorShell.java37 import com.google.inject.spi.InjectionPoint;
230 ImmutableSet.<InjectionPoint>of())); in bindInjector()
272 ImmutableSet.<InjectionPoint>of())); in bindLogger()
278 InjectionPoint injectionPoint = dependency.getInjectionPoint(); in get()
303 ImmutableSet.<InjectionPoint>of(), in bindStage()
/external/guice/core/test/com/google/inject/internal/
DProxyFactoryTest.java26 import com.google.inject.spi.InjectionPoint;
43 InjectionPoint injectionPoint = InjectionPoint.forConstructorOf(Simple.class); in testSimpleCase()
82 new ProxyFactory<Foo>(InjectionPoint.forConstructorOf(Foo.class), aspects).create(); in testInterceptOneMethod()
84 new ProxyFactory<Bar>(InjectionPoint.forConstructorOf(Bar.class), aspects).create(); in testInterceptOneMethod()
136 new ProxyFactory<A>(InjectionPoint.forConstructorOf(A.class), aspects); in testWithConstructorArguments()
151 new ProxyFactory<A>(InjectionPoint.forConstructorOf(A.class), aspects); in testNotProxied()
177 new ProxyFactory<Counter>(InjectionPoint.forConstructorOf(Counter.class), aspects); in testMultipleInterceptors()
/external/guice/extensions/grapher/src/com/google/inject/grapher/
DDependencyEdge.java20 import com.google.inject.spi.InjectionPoint;
34 private final InjectionPoint injectionPoint;
36 public DependencyEdge(NodeId fromId, NodeId toId, InjectionPoint injectionPoint) { in DependencyEdge()
41 public InjectionPoint getInjectionPoint() { in getInjectionPoint()
DDefaultNodeCreator.java26 import com.google.inject.spi.InjectionPoint;
84 InjectionPoint injectionPoint = dependency.getInjectionPoint(); in newInstanceNode()
102 for (InjectionPoint injectionPoint : binding.getInjectableMembers()) { in visit()
/external/guice/core/src/com/google/inject/util/
DProviders.java28 import com.google.inject.spi.InjectionPoint;
98 Set<InjectionPoint> injectionPoints = in guicify()
99 InjectionPoint.forInstanceMethodsAndFields(provider.getClass()); in guicify()
104 for (InjectionPoint ip : injectionPoints) { in guicify()
/external/guice/core/src/com/google/inject/multibindings/
DMultibindingsScanner.java23 import com.google.inject.spi.InjectionPoint;
70 Binder binder, Annotation annotation, Key<T> key, InjectionPoint injectionPoint) { in scanner()

12