@Component(value="ui_UiControllerDependencyInjector")
public class UiControllerDependencyInjector
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected org.springframework.context.ApplicationContext |
applicationContext |
protected UiControllerReflectionInspector |
reflectionInspector |
Constructor and Description |
---|
UiControllerDependencyInjector(org.springframework.context.ApplicationContext applicationContext,
UiControllerReflectionInspector reflectionInspector) |
Modifier and Type | Method and Description |
---|---|
protected void |
assignValue(java.lang.reflect.AnnotatedElement element,
java.lang.Object value,
FrameOwner frameOwner) |
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(UiControllerReflectionInspector.InjectElement injectElement,
FrameOwner frameOwner,
ScreenOptions options) |
protected java.lang.Object |
findMethodTarget(Frame frame,
java.lang.String target) |
protected java.lang.Object |
getInjectedInstance(java.lang.Class<?> type,
java.lang.String name,
UiControllerReflectionInspector.InjectElement injectElement,
FrameOwner frameOwner,
ScreenOptions options) |
protected java.lang.String |
getInjectionName(UiControllerReflectionInspector.InjectElement injectElement) |
protected java.lang.Class<?> |
getInjectionType(UiControllerReflectionInspector.InjectElement injectElement) |
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(FrameOwner frameOwner,
ScreenOptions options) |
protected void |
injectValues(FrameOwner frameOwner,
ScreenOptions options,
UiControllerReflectionInspector.ScreenIntrospectionData screenIntrospectionData) |
protected boolean |
isInjectionRequired(UiControllerReflectionInspector.InjectElement injectElement) |
protected org.springframework.context.ApplicationContext applicationContext
protected UiControllerReflectionInspector reflectionInspector
@Autowired public UiControllerDependencyInjector(org.springframework.context.ApplicationContext applicationContext, UiControllerReflectionInspector reflectionInspector)
public void inject(FrameOwner frameOwner, ScreenOptions options)
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(FrameOwner frameOwner, ScreenOptions options, 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(UiControllerReflectionInspector.InjectElement injectElement, FrameOwner frameOwner, ScreenOptions options)
protected java.lang.String getInjectionName(UiControllerReflectionInspector.InjectElement injectElement)
protected java.lang.Class<?> getInjectionType(UiControllerReflectionInspector.InjectElement injectElement)
protected boolean isInjectionRequired(UiControllerReflectionInspector.InjectElement injectElement)
@Nullable protected java.lang.Object getInjectedInstance(java.lang.Class<?> type, java.lang.String name, UiControllerReflectionInspector.InjectElement injectElement, FrameOwner frameOwner, ScreenOptions options)
protected MessageBundle createMessageBundle(java.lang.reflect.AnnotatedElement element, FrameOwner frameOwner, Frame frame)
protected void assignValue(java.lang.reflect.AnnotatedElement element, java.lang.Object value, FrameOwner frameOwner)