Package io.jmix.flowui.sys
Class UiControllerDependencyInjector
java.lang.Object
io.jmix.flowui.sys.UiControllerDependencyInjector
@Component("flowui_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, Screen<?> controller) protected Object
createInstallHandler
(Screen<?> controller, Method method, Class<?> targetObjectType) protected MessageBundle
createMessageBundle
(Screen<?> controller) protected void
doInjection
(UiControllerReflectionInspector.InjectElement injectElement, Screen<?> controller) protected Object
findMethodTarget
(Screen<?> controller, String target) protected com.vaadin.flow.component.ComponentEventListener
getComponentEventListener
(Screen<?> controller, Class<? extends Screen> clazz, UiControllerReflectionInspector.AnnotatedMethod<Subscribe> annotatedMethod, Class<?> eventType) protected Consumer<?>
getConsumerListener
(Screen<?> controller, Class<? extends Screen> clazz, UiControllerReflectionInspector.AnnotatedMethod<Subscribe> annotatedMethod, Class<?> eventType) protected Object
getInjectedInstance
(Class<?> type, String name, UiControllerReflectionInspector.InjectElement injectElement, Screen<?> controller) protected String
getInjectionName
(UiControllerReflectionInspector.InjectElement injectElement) protected Class<?>
getInjectionType
(UiControllerReflectionInspector.InjectElement injectElement) protected Object
getInstallTargetInstance
(Screen<?> controller, Install annotation) protected MethodHandle
getInstallTargetSetterMethod
(Install annotation, Screen<?> controller, Class<?> instanceClass, Method provideMethod) protected void
initInstallMethods
(Screen<?> controller, UiControllerReflectionInspector.ScreenIntrospectionData screenIntrospectionData) protected void
initSubscribeListeners
(Screen<?> controller, UiControllerReflectionInspector.ScreenIntrospectionData screenIntrospectionData) protected void
initUiEventListeners
(Screen<?> controller, UiControllerReflectionInspector.ScreenIntrospectionData screenIntrospectionData) void
protected void
injectElements
(Screen<?> controller, UiControllerReflectionInspector.ScreenIntrospectionData screenIntrospectionData)
-
Field Details
-
applicationContext
protected org.springframework.context.ApplicationContext applicationContext -
reflectionInspector
-
-
Constructor Details
-
UiControllerDependencyInjector
public UiControllerDependencyInjector(org.springframework.context.ApplicationContext applicationContext, UiControllerReflectionInspector reflectionInspector)
-
-
Method Details
-
inject
-
injectElements
protected void injectElements(Screen<?> controller, UiControllerReflectionInspector.ScreenIntrospectionData screenIntrospectionData) -
doInjection
protected void doInjection(UiControllerReflectionInspector.InjectElement injectElement, Screen<?> controller) -
getInjectionName
-
getInjectionType
-
getInjectedInstance
@Nullable protected Object getInjectedInstance(Class<?> type, String name, UiControllerReflectionInspector.InjectElement injectElement, Screen<?> controller) -
createMessageBundle
-
assignValue
-
initUiEventListeners
protected void initUiEventListeners(Screen<?> controller, UiControllerReflectionInspector.ScreenIntrospectionData screenIntrospectionData) -
initInstallMethods
protected void initInstallMethods(Screen<?> controller, UiControllerReflectionInspector.ScreenIntrospectionData screenIntrospectionData) -
getInstallTargetSetterMethod
protected MethodHandle getInstallTargetSetterMethod(Install annotation, Screen<?> controller, Class<?> instanceClass, Method provideMethod) -
getInstallTargetInstance
-
createInstallHandler
-
initSubscribeListeners
protected void initSubscribeListeners(Screen<?> controller, UiControllerReflectionInspector.ScreenIntrospectionData screenIntrospectionData) -
getComponentEventListener
-
getConsumerListener
-
findMethodTarget
-