/external/guice/core/test/com/google/inject/spi/ |
D | InjectionPointTest.java | 34 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/ |
D | InjectionPoint.java | 60 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 …]
|
D | Dependency.java | 41 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()
|
D | ConstructorBinding.java | 38 InjectionPoint getConstructor(); in getConstructor() 47 Set<InjectionPoint> getInjectableMembers(); in getInjectableMembers()
|
D | StaticInjectionRequest.java | 65 public Set<InjectionPoint> getInjectionPoints() throws ConfigurationException { in getInjectionPoints() 66 return InjectionPoint.forStaticMethodsAndFields(type); in getInjectionPoints()
|
D | InjectionRequest.java | 73 public Set<InjectionPoint> getInjectionPoints() throws ConfigurationException { in getInjectionPoints() 74 return InjectionPoint.forInstanceMethodsAndFields(instance.getClass()); in getInjectionPoints()
|
/external/guice/core/src/com/google/inject/internal/ |
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) 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()
|
D | ConstructorBindingImpl.java | 33 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 …]
|
D | BindingBuilder.java | 30 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()
|
D | DefaultConstructionProxyFactory.java | 21 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()
|
D | SingleFieldInjector.java | 21 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()
|
D | InstanceBindingImpl.java | 27 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()
|
D | ProviderInstanceBindingImpl.java | 27 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()
|
D | MembersInjectorStore.java | 24 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()
|
D | SingleMethodInjector.java | 21 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() {
|
D | ConstructorInjector.java | 21 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()
|
D | SingleMemberInjector.java | 19 import com.google.inject.spi.InjectionPoint; 26 InjectionPoint getInjectionPoint(); in getInjectionPoint()
|
D | ProxyFactory.java | 26 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()
|
D | InjectionRequestProcessor.java | 23 import com.google.inject.spi.InjectionPoint; 53 Set<InjectionPoint> injectionPoints; in visit() 98 Set<InjectionPoint> injectionPoints; in validate()
|
D | ConstructionProxy.java | 20 import com.google.inject.spi.InjectionPoint; 43 InjectionPoint getInjectionPoint(); in getInjectionPoint()
|
D | MembersInjectorImpl.java | 26 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/ |
D | ProxyFactoryTest.java | 26 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/ |
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() 101 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; 97 Set<InjectionPoint> injectionPoints = in guicify() 98 InjectionPoint.forInstanceMethodsAndFields(provider.getClass()); in guicify() 103 for(InjectionPoint ip : injectionPoints) { in guicify()
|