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
FieldsModifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContextprotected UiControllerReflectionInspector -
Constructor Summary
ConstructorsConstructorDescriptionUiControllerDependencyInjector(org.springframework.context.ApplicationContext applicationContext, UiControllerReflectionInspector reflectionInspector) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidassignValue(AnnotatedElement element, Object value, Screen<?> controller) protected ObjectcreateInstallHandler(Screen<?> controller, Method method, Class<?> targetObjectType) protected MessageBundlecreateMessageBundle(Screen<?> controller) protected voiddoInjection(UiControllerReflectionInspector.InjectElement injectElement, Screen<?> controller) protected ObjectfindMethodTarget(Screen<?> controller, String target) protected com.vaadin.flow.component.ComponentEventListenergetComponentEventListener(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 ObjectgetInjectedInstance(Class<?> type, String name, UiControllerReflectionInspector.InjectElement injectElement, Screen<?> controller) protected StringgetInjectionName(UiControllerReflectionInspector.InjectElement injectElement) protected Class<?>getInjectionType(UiControllerReflectionInspector.InjectElement injectElement) protected ObjectgetInstallTargetInstance(Screen<?> controller, Install annotation) protected MethodHandlegetInstallTargetSetterMethod(Install annotation, Screen<?> controller, Class<?> instanceClass, Method provideMethod) protected voidinitInstallMethods(Screen<?> controller, UiControllerReflectionInspector.ScreenIntrospectionData screenIntrospectionData) protected voidinitSubscribeListeners(Screen<?> controller, UiControllerReflectionInspector.ScreenIntrospectionData screenIntrospectionData) protected voidinitUiEventListeners(Screen<?> controller, UiControllerReflectionInspector.ScreenIntrospectionData screenIntrospectionData) voidprotected voidinjectElements(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
-