@Component(value="cuba_UiControllerDependencyInjector") @Order(value=-2147483648) public class UiControllerDependencyInjector extends java.lang.Object implements ControllerDependencyInjector
Inject
, Autowired
, Resource
, Named
, WindowParam
fields/setters
and Subscribe
, Install
and EventListener
methods.ControllerDependencyInjector.InjectionContext
Modifier and Type | Field and Description |
---|---|
protected BeanLocator |
beanLocator |
static java.lang.String |
NAME |
protected UiControllerReflectionInspector |
reflectionInspector |
Constructor and Description |
---|
UiControllerDependencyInjector() |
Modifier and Type | Method and Description |
---|---|
protected void |
assignValue(java.lang.reflect.AnnotatedElement element,
java.lang.Object value,
ControllerDependencyInjector.InjectionContext injectionContext) |
protected java.lang.Object |
createInstallHandler(FrameOwner frameOwner,
java.lang.reflect.Method method,
java.lang.Class<?> targetObjectType) |
protected MessageBundle |
createMessageBundle(java.lang.reflect.AnnotatedElement element,
FrameOwner frameOwner,
Frame frame) |
protected void |
doInjection(java.lang.reflect.AnnotatedElement element,
java.lang.Class annotationClass,
ControllerDependencyInjector.InjectionContext injectionContext) |
protected java.lang.Object |
findMethodTarget(Frame frame,
java.lang.String target) |
protected java.lang.Object |
getInjectedInstance(java.lang.Class<?> type,
java.lang.String name,
java.lang.Class annotationClass,
java.lang.reflect.AnnotatedElement element,
ControllerDependencyInjector.InjectionContext injectionContext) |
protected java.lang.Object |
getInstallTargetInstance(FrameOwner frameOwner,
Install annotation,
Frame frame) |
protected java.lang.invoke.MethodHandle |
getInstallTargetSetterMethod(Install annotation,
Frame frame,
java.lang.Class<?> instanceClass,
java.lang.reflect.Method provideMethod) |
protected void |
initInstallMethods(FrameOwner frameOwner,
UiControllerReflectionInspector.ScreenIntrospectionData screenIntrospectionData) |
protected void |
initSubscribeListeners(FrameOwner frameOwner,
UiControllerReflectionInspector.ScreenIntrospectionData screenIntrospectionData) |
protected void |
initUiEventListeners(FrameOwner frameOwner,
UiControllerReflectionInspector.ScreenIntrospectionData screenIntrospectionData) |
void |
inject(ControllerDependencyInjector.InjectionContext injectionContext)
The method is invoked when the screen instance is created
|
protected void |
injectValues(ControllerDependencyInjector.InjectionContext injectionContext,
UiControllerReflectionInspector.ScreenIntrospectionData screenIntrospectionData) |
void |
setBeanLocator(BeanLocator beanLocator) |
void |
setReflectionInspector(UiControllerReflectionInspector reflectionInspector) |
public static final java.lang.String NAME
protected BeanLocator beanLocator
protected UiControllerReflectionInspector reflectionInspector
@Inject public void setBeanLocator(BeanLocator beanLocator)
@Inject public void setReflectionInspector(UiControllerReflectionInspector reflectionInspector)
public void inject(ControllerDependencyInjector.InjectionContext injectionContext)
ControllerDependencyInjector
inject
in interface ControllerDependencyInjector
protected void initInstallMethods(FrameOwner frameOwner, UiControllerReflectionInspector.ScreenIntrospectionData screenIntrospectionData)
protected java.lang.invoke.MethodHandle getInstallTargetSetterMethod(Install annotation, Frame frame, java.lang.Class<?> instanceClass, java.lang.reflect.Method provideMethod)
@Nullable protected java.lang.Object getInstallTargetInstance(FrameOwner frameOwner, Install annotation, Frame frame)
protected java.lang.Object createInstallHandler(FrameOwner frameOwner, java.lang.reflect.Method method, java.lang.Class<?> targetObjectType)
protected void injectValues(ControllerDependencyInjector.InjectionContext injectionContext, UiControllerReflectionInspector.ScreenIntrospectionData screenIntrospectionData)
protected void initSubscribeListeners(FrameOwner frameOwner, UiControllerReflectionInspector.ScreenIntrospectionData screenIntrospectionData)
@Nullable protected java.lang.Object findMethodTarget(Frame frame, java.lang.String target)
protected void initUiEventListeners(FrameOwner frameOwner, UiControllerReflectionInspector.ScreenIntrospectionData screenIntrospectionData)
protected void doInjection(java.lang.reflect.AnnotatedElement element, java.lang.Class annotationClass, ControllerDependencyInjector.InjectionContext injectionContext)
@Nullable protected java.lang.Object getInjectedInstance(java.lang.Class<?> type, java.lang.String name, java.lang.Class annotationClass, java.lang.reflect.AnnotatedElement element, ControllerDependencyInjector.InjectionContext injectionContext)
protected MessageBundle createMessageBundle(java.lang.reflect.AnnotatedElement element, FrameOwner frameOwner, Frame frame)
protected void assignValue(java.lang.reflect.AnnotatedElement element, java.lang.Object value, ControllerDependencyInjector.InjectionContext injectionContext)