/external/guice/core/test/com/google/inject/spi/ |
D | InjectionPointTest.java | 36 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/ |
D | InjectionPoint.java | 61 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 …]
|
D | Dependency.java | 40 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()
|
D | ConstructorBinding.java | 35 InjectionPoint getConstructor(); in getConstructor() 44 Set<InjectionPoint> getInjectableMembers(); in getInjectableMembers()
|
D | StaticInjectionRequest.java | 66 public Set<InjectionPoint> getInjectionPoints() throws ConfigurationException { in getInjectionPoints() 67 return InjectionPoint.forStaticMethodsAndFields(type); in getInjectionPoints()
|
/external/guice/core/src/com/google/inject/internal/ |
D | DefaultConstructionProxyFactory.java | 21 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()
|
D | ConstructorBindingImpl.java | 34 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 …]
|
D | ConstructorInjectorStore.java | 22 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()
|
D | BindingBuilder.java | 30 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()
|
D | SingleFieldInjector.java | 21 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()
|
D | InstanceBindingImpl.java | 27 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()
|
D | MembersInjectorStore.java | 24 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()
|
D | SingleMethodInjector.java | 20 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() {
|
D | ProviderInstanceBindingImpl.java | 28 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()
|
D | ConstructorInjector.java | 22 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()
|
D | ProxyFactory.java | 26 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()
|
D | SingleMemberInjector.java | 19 import com.google.inject.spi.InjectionPoint; 25 InjectionPoint getInjectionPoint(); in getInjectionPoint()
|
D | InjectionRequestProcessor.java | 23 import com.google.inject.spi.InjectionPoint; 54 Set<InjectionPoint> injectionPoints; in visit() 99 Set<InjectionPoint> injectionPoints; in validate()
|
D | ConstructionProxy.java | 20 import com.google.inject.spi.InjectionPoint; 37 InjectionPoint getInjectionPoint(); in getInjectionPoint()
|
D | InjectorShell.java | 37 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/ |
D | ProxyFactoryTest.java | 26 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/ |
D | DependencyEdge.java | 20 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()
|
D | DefaultNodeCreator.java | 26 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/ |
D | Providers.java | 28 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/ |
D | MultibindingsScanner.java | 23 import com.google.inject.spi.InjectionPoint; 70 Binder binder, Annotation annotation, Key<T> key, InjectionPoint injectionPoint) { in scanner()
|