Package io.jmix.ui.sys
Class UiControllerDependencyInjector
java.lang.Object
io.jmix.ui.sys.UiControllerDependencyInjector
@Component("ui_UiControllerDependencyInjector")
public class UiControllerDependencyInjector
extends Object
-
Field Summary
Modifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContext
protected UiControllerReflectionInspector
-
Constructor Summary
ConstructorDescriptionUiControllerDependencyInjector
(org.springframework.context.ApplicationContext applicationContext, UiControllerReflectionInspector reflectionInspector) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
assignValue
(AnnotatedElement element, Object value, FrameOwner frameOwner) protected Object
createInstallHandler
(FrameOwner frameOwner, Method method, Class<?> targetObjectType) protected MessageBundle
createMessageBundle
(AnnotatedElement element, FrameOwner frameOwner, Frame frame) protected void
doInjection
(UiControllerReflectionInspector.InjectElement injectElement, FrameOwner frameOwner, ScreenOptions options) protected Object
findMethodTarget
(Frame frame, String target) protected Object
getInjectedInstance
(Class<?> type, String name, UiControllerReflectionInspector.InjectElement injectElement, FrameOwner frameOwner, ScreenOptions options) protected String
getInjectionName
(UiControllerReflectionInspector.InjectElement injectElement) protected Class<?>
getInjectionType
(UiControllerReflectionInspector.InjectElement injectElement) protected Object
getInstallTargetInstance
(FrameOwner frameOwner, Install annotation, Frame frame) protected MethodHandle
getInstallTargetSetterMethod
(Install annotation, Frame frame, Class<?> instanceClass, 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)
-
Field Details
-
applicationContext
protected org.springframework.context.ApplicationContext applicationContext -
reflectionInspector
-
-
Constructor Details
-
UiControllerDependencyInjector
@Autowired public UiControllerDependencyInjector(org.springframework.context.ApplicationContext applicationContext, UiControllerReflectionInspector reflectionInspector)
-
-
Method Details
-
inject
-
initInstallMethods
protected void initInstallMethods(FrameOwner frameOwner, UiControllerReflectionInspector.ScreenIntrospectionData screenIntrospectionData) -
getInstallTargetSetterMethod
protected MethodHandle getInstallTargetSetterMethod(Install annotation, Frame frame, Class<?> instanceClass, Method provideMethod) -
getInstallTargetInstance
@Nullable protected Object getInstallTargetInstance(FrameOwner frameOwner, Install annotation, Frame frame) -
createInstallHandler
protected Object createInstallHandler(FrameOwner frameOwner, Method method, Class<?> targetObjectType) -
injectValues
protected void injectValues(FrameOwner frameOwner, ScreenOptions options, UiControllerReflectionInspector.ScreenIntrospectionData screenIntrospectionData) -
initSubscribeListeners
protected void initSubscribeListeners(FrameOwner frameOwner, UiControllerReflectionInspector.ScreenIntrospectionData screenIntrospectionData) -
findMethodTarget
-
initUiEventListeners
protected void initUiEventListeners(FrameOwner frameOwner, UiControllerReflectionInspector.ScreenIntrospectionData screenIntrospectionData) -
doInjection
protected void doInjection(UiControllerReflectionInspector.InjectElement injectElement, FrameOwner frameOwner, ScreenOptions options) -
getInjectionName
-
getInjectionType
-
isInjectionRequired
-
getInjectedInstance
@Nullable protected Object getInjectedInstance(Class<?> type, String name, UiControllerReflectionInspector.InjectElement injectElement, FrameOwner frameOwner, ScreenOptions options) -
createMessageBundle
protected MessageBundle createMessageBundle(AnnotatedElement element, FrameOwner frameOwner, Frame frame) -
assignValue
-