public class DefaultInjectionProvider extends StandardInjectionProvider
StandardInjection, it roughly follows the
documentation of Inject with additional restrictions:
@Inject constructor also has fields with @Inject.
In parent classes, @Inject fields are accepted.@Inject fields may not be static.| Constructor and Description |
|---|
DefaultInjectionProvider(String rootPackage) |
| Modifier and Type | Method and Description |
|---|---|
<T> Resolution<T> |
safeGet(Class<T> clazz)
Gets the instantiation for the class or null if unavailable.
|
protected void |
validateInjection(Class<?> clazz,
Constructor<?> constructor,
List<Field> fields)
Assures that the class and the members relevant for the instantiation form a valid combination.
|
protected void |
verifyIsClassPackageAllowed(Class<?> clazz) |
getFieldsToInject, getInjectionConstructorresolveclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonAnnotation, onProvider, onProviderClass, postProcesspublic DefaultInjectionProvider(String rootPackage)
public <T> Resolution<T> safeGet(Class<T> clazz)
DirectInstantiationProvidersafeGet in class StandardInjectionProviderT - the class' typeclazz - the class to processprotected void validateInjection(Class<?> clazz, Constructor<?> constructor, List<Field> fields)
StandardInjectionProvidervalidateInjection in class StandardInjectionProviderclazz - the class to instantiateconstructor - the constructor to instantiate withfields - the fields to injectprotected void verifyIsClassPackageAllowed(Class<?> clazz)
Copyright © 2017. All rights reserved.