Home
last modified time | relevance | path

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

12

/external/guice/core/test/com/google/inject/spi/
DInjectionPointTest.java34 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()
79 getOnlyElement(new InjectionPoint(typeLiteral, fooField, false).getDependencies())); in testFieldInjectionPoint()
86 InjectionPoint injectionPoint = new InjectionPoint(typeLiteral, barMethod, false); in testMethodInjectionPoint()
90 assertEqualsBothWays(injectionPoint, new InjectionPoint(typeLiteral, barMethod, false)); in testMethodInjectionPoint()
102 getOnlyElement(new InjectionPoint(typeLiteral, barMethod, false).getDependencies())); in testMethodInjectionPoint()
110 InjectionPoint injectionPoint = new InjectionPoint(typeLiteral, constructor); in testConstructorInjectionPoint()
114 assertEqualsBothWays(injectionPoint, new InjectionPoint(typeLiteral, constructor)); in testConstructorInjectionPoint()
126 getOnlyElement(new InjectionPoint(typeLiteral, constructor).getDependencies())); in testConstructorInjectionPoint()
[all …]
/external/guice/core/src/com/google/inject/spi/
DInjectionPoint.java60 public final class InjectionPoint { class
62 private static final Logger logger = Logger.getLogger(InjectionPoint.class.getName());
69 InjectionPoint(TypeLiteral<?> declaringType, Method method, boolean optional) { in InjectionPoint() method in InjectionPoint
76 InjectionPoint(TypeLiteral<?> declaringType, Constructor<?> constructor) { in InjectionPoint() method in InjectionPoint
84 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()
208 public static <T> InjectionPoint forConstructor(Constructor<T> constructor) { in forConstructor()
209 return new InjectionPoint(TypeLiteral.get(constructor.getDeclaringClass()), constructor); in forConstructor()
[all …]
DDependency.java41 private final InjectionPoint injectionPoint;
46 Dependency(InjectionPoint injectionPoint, Key<T> key, boolean nullable, int parameterIndex) { in Dependency()
64 public static Set<Dependency<?>> forInjectionPoints(Set<InjectionPoint> injectionPoints) { in forInjectionPoints()
66 for (InjectionPoint injectionPoint : injectionPoints) { in forInjectionPoints()
90 public InjectionPoint getInjectionPoint() { in getInjectionPoint()
DConstructorBinding.java38 InjectionPoint getConstructor(); in getConstructor()
47 Set<InjectionPoint> getInjectableMembers(); in getInjectableMembers()
DStaticInjectionRequest.java65 public Set<InjectionPoint> getInjectionPoints() throws ConfigurationException { in getInjectionPoints()
66 return InjectionPoint.forStaticMethodsAndFields(type); in getInjectionPoints()
DInjectionRequest.java73 public Set<InjectionPoint> getInjectionPoints() throws ConfigurationException { in getInjectionPoints()
74 return InjectionPoint.forInstanceMethodsAndFields(instance.getClass()); in getInjectionPoints()
/external/guice/core/src/com/google/inject/internal/
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)
48 public ConstructorInjector<?> get(InjectionPoint constructorInjector, Errors errors) in get()
62 boolean remove(InjectionPoint ip) { in remove()
66 private <T> ConstructorInjector<T> createConstructor(InjectionPoint injectionPoint, Errors errors) in createConstructor()
DConstructorBindingImpl.java33 import com.google.inject.spi.InjectionPoint;
47 private final InjectionPoint constructorInjectionPoint;
51 InjectionPoint constructorInjectionPoint) { in ConstructorBindingImpl()
58 InjectionPoint constructorInjectionPoint, Set<InjectionPoint> injectionPoints) { in ConstructorBindingImpl()
74 InjectionPoint constructorInjector, Object source, Scoping scoping, Errors errors, in create()
99 constructorInjector = InjectionPoint.forConstructorOf(key.getTypeLiteral()); in create()
148 InjectionPoint getInternalConstructor() { in getInternalConstructor()
158 ImmutableSet.Builder<InjectionPoint> builder = ImmutableSet.builder(); in getInternalDependencies()
164 …builder.addAll(InjectionPoint.forInstanceMethodsAndFields(constructorInjectionPoint.getDeclaringTy… in getInternalDependencies()
179 public InjectionPoint getConstructor() { in getConstructor()
[all …]
DBindingBuilder.java30 import com.google.inject.spi.InjectionPoint;
81 Set<InjectionPoint> injectionPoints; in toInstance()
84 injectionPoints = InjectionPoint.forInstanceMethodsAndFields(instance.getClass()); in toInstance()
108 Set<InjectionPoint> injectionPoints; in toProvider()
110 injectionPoints = InjectionPoint.forInstanceMethodsAndFields(provider.getClass()); in toProvider()
155 Set<InjectionPoint> injectionPoints; in toConstructor()
157 injectionPoints = InjectionPoint.forInstanceMethodsAndFields(type); in toConstructor()
164 InjectionPoint constructorPoint = InjectionPoint.forConstructor(constructor, type); in toConstructor()
DDefaultConstructionProxyFactory.java21 import com.google.inject.spi.InjectionPoint;
36 private final InjectionPoint injectionPoint;
41 DefaultConstructionProxyFactory(InjectionPoint injectionPoint) { in DefaultConstructionProxyFactory()
63 public InjectionPoint getInjectionPoint() { in create()
93 public InjectionPoint getInjectionPoint() { in create()
DSingleFieldInjector.java21 import com.google.inject.spi.InjectionPoint;
30 final InjectionPoint injectionPoint;
34 public SingleFieldInjector(InjectorImpl injector, InjectionPoint injectionPoint, Errors errors) in SingleFieldInjector()
45 public InjectionPoint getInjectionPoint() { in getInjectionPoint()
DInstanceBindingImpl.java27 import com.google.inject.spi.InjectionPoint;
37 final ImmutableSet<InjectionPoint> injectionPoints;
40 InternalFactory<? extends T> internalFactory, Set<InjectionPoint> injectionPoints, in InstanceBindingImpl()
49 Set<InjectionPoint> injectionPoints, T instance) { in InstanceBindingImpl()
68 public Set<InjectionPoint> getInjectionPoints() { in getInjectionPoints()
DProviderInstanceBindingImpl.java27 import com.google.inject.spi.InjectionPoint;
38 final ImmutableSet<InjectionPoint> injectionPoints;
43 Set<InjectionPoint> injectionPoints) { in ProviderInstanceBindingImpl()
50 Set<InjectionPoint> injectionPoints, javax.inject.Provider<? extends T> providerInstance) { in ProviderInstanceBindingImpl()
74 public Set<InjectionPoint> getInjectionPoints() { in getInjectionPoints()
DMembersInjectorStore.java24 import com.google.inject.spi.InjectionPoint;
91 Set<InjectionPoint> injectionPoints; in createWithListeners()
93 injectionPoints = InjectionPoint.forInstanceMethodsAndFields(type); in createWithListeners()
124 Set<InjectionPoint> injectionPoints, Errors errors) { in getInjectors()
126 for (InjectionPoint injectionPoint : injectionPoints) { in getInjectors()
DSingleMethodInjector.java21 import com.google.inject.spi.InjectionPoint;
33 private final InjectionPoint injectionPoint;
35 SingleMethodInjector(InjectorImpl injector, InjectionPoint injectionPoint, Errors errors) in SingleMethodInjector()
77 public InjectionPoint getInjectionPoint() {
DConstructorInjector.java21 import com.google.inject.spi.InjectionPoint;
34 private final ImmutableSet<InjectionPoint> injectableMembers;
39 ConstructorInjector(Set<InjectionPoint> injectableMembers, in ConstructorInjector()
49 public ImmutableSet<InjectionPoint> getInjectableMembers() { in getInjectableMembers()
DSingleMemberInjector.java19 import com.google.inject.spi.InjectionPoint;
26 InjectionPoint getInjectionPoint(); in getInjectionPoint()
DProxyFactory.java26 import com.google.inject.spi.InjectionPoint;
55 private final InjectionPoint injectionPoint;
67 ProxyFactory(InjectionPoint injectionPoint, Iterable<MethodAspect> methodAspects) { in ProxyFactory()
242 final InjectionPoint injectionPoint;
250 ProxyConstructor(Enhancer enhancer, InjectionPoint injectionPoint, Callback[] callbacks, in ProxyConstructor()
272 public InjectionPoint getInjectionPoint() { in getInjectionPoint()
DInjectionRequestProcessor.java23 import com.google.inject.spi.InjectionPoint;
53 Set<InjectionPoint> injectionPoints; in visit()
98 Set<InjectionPoint> injectionPoints; in validate()
DConstructionProxy.java20 import com.google.inject.spi.InjectionPoint;
43 InjectionPoint getInjectionPoint(); in getInjectionPoint()
DMembersInjectorImpl.java26 import com.google.inject.spi.InjectionPoint;
152 public ImmutableSet<InjectionPoint> getInjectionPoints() { in getInjectionPoints()
153 ImmutableSet.Builder<InjectionPoint> builder = ImmutableSet.builder(); in getInjectionPoints()
/external/guice/core/test/com/google/inject/internal/
DProxyFactoryTest.java26 import com.google.inject.spi.InjectionPoint;
48 InjectionPoint injectionPoint = InjectionPoint.forConstructorOf(Simple.class); in testSimpleCase()
85 = new ProxyFactory<Foo>(InjectionPoint.forConstructorOf(Foo.class), aspects).create(); in testInterceptOneMethod()
87 = new ProxyFactory<Bar>(InjectionPoint.forConstructorOf(Bar.class), aspects).create(); in testInterceptOneMethod()
137 = new ProxyFactory<A>(InjectionPoint.forConstructorOf(A.class), aspects); in testWithConstructorArguments()
152 = new ProxyFactory<A>(InjectionPoint.forConstructorOf(A.class), aspects); in testNotProxied()
175 = 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()
101 for (InjectionPoint injectionPoint : binding.getInjectableMembers()) { in visit()
/external/guice/core/src/com/google/inject/util/
DProviders.java28 import com.google.inject.spi.InjectionPoint;
97 Set<InjectionPoint> injectionPoints = in guicify()
98 InjectionPoint.forInstanceMethodsAndFields(provider.getClass()); in guicify()
103 for(InjectionPoint ip : injectionPoints) { in guicify()

12