Package io.jmix.flowui.sys
Class ViewControllerDependencyInjector
java.lang.Object
io.jmix.flowui.sys.ViewControllerDependencyInjector
@Component("flowui_ViewControllerDependencyInjector")
public class ViewControllerDependencyInjector
extends Object
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContextprotected ViewControllerReflectionInspector -
Constructor Summary
ConstructorsConstructorDescriptionViewControllerDependencyInjector(org.springframework.context.ApplicationContext applicationContext, ViewControllerReflectionInspector reflectionInspector) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidassignValue(AnnotatedElement element, Object value, View<?> controller) protected ObjectcreateInstallHandler(View<?> controller, Method method, Class<?> targetObjectType) protected MessageBundlecreateMessageBundle(View<?> controller) protected voiddoInjection(ViewControllerReflectionInspector.InjectElement injectElement, View<?> controller) protected ObjectfindMethodTarget(View<?> controller, String target) protected ObjectfindSubTargetRecursively(ComponentContainer viewLayout, String[] elements) protected com.vaadin.flow.component.ComponentEventListenergetComponentEventListener(View<?> controller, Class<? extends View> clazz, ViewControllerReflectionInspector.AnnotatedMethod<Subscribe> annotatedMethod, Class<?> eventType) protected Consumer<?>getConsumerListener(View<?> controller, Class<? extends View> clazz, ViewControllerReflectionInspector.AnnotatedMethod<Subscribe> annotatedMethod, Class<?> eventType) protected ObjectgetInjectedInstance(Class<?> type, String name, ViewControllerReflectionInspector.InjectElement injectElement, View<?> controller) protected StringgetInjectionName(ViewControllerReflectionInspector.InjectElement injectElement) protected Class<?>getInjectionType(ViewControllerReflectionInspector.InjectElement injectElement) protected ObjectgetInstallTargetInstance(View<?> controller, Install annotation) protected MethodHandlegetInstallTargetSetterMethod(Install annotation, View<?> controller, Class<?> instanceClass, Method provideMethod) protected com.vaadin.flow.component.HasValue.ValueChangeListenergetValueChangeEventListener(View<?> controller, Class<? extends View> clazz, ViewControllerReflectionInspector.AnnotatedMethod<Subscribe> annotatedMethod, Class<?> eventType) protected voidinitInstallMethods(View<?> controller, ViewControllerReflectionInspector.ViewIntrospectionData viewIntrospectionData) protected voidinitSubscribeListeners(View<?> controller, ViewControllerReflectionInspector.ViewIntrospectionData viewIntrospectionData) protected voidinitUiEventListeners(View<?> controller, ViewControllerReflectionInspector.ViewIntrospectionData viewIntrospectionData) voidprotected voidinjectElements(View<?> controller, ViewControllerReflectionInspector.ViewIntrospectionData viewIntrospectionData)
-
Field Details
-
applicationContext
protected org.springframework.context.ApplicationContext applicationContext -
reflectionInspector
-
-
Constructor Details
-
ViewControllerDependencyInjector
public ViewControllerDependencyInjector(org.springframework.context.ApplicationContext applicationContext, ViewControllerReflectionInspector reflectionInspector)
-
-
Method Details
-
inject
-
injectElements
protected void injectElements(View<?> controller, ViewControllerReflectionInspector.ViewIntrospectionData viewIntrospectionData) -
doInjection
protected void doInjection(ViewControllerReflectionInspector.InjectElement injectElement, View<?> controller) -
getInjectionName
-
getInjectionType
-
getInjectedInstance
@Nullable protected Object getInjectedInstance(Class<?> type, String name, ViewControllerReflectionInspector.InjectElement injectElement, View<?> controller) -
createMessageBundle
-
assignValue
-
initUiEventListeners
protected void initUiEventListeners(View<?> controller, ViewControllerReflectionInspector.ViewIntrospectionData viewIntrospectionData) -
initInstallMethods
protected void initInstallMethods(View<?> controller, ViewControllerReflectionInspector.ViewIntrospectionData viewIntrospectionData) -
getInstallTargetSetterMethod
protected MethodHandle getInstallTargetSetterMethod(Install annotation, View<?> controller, Class<?> instanceClass, Method provideMethod) -
getInstallTargetInstance
-
createInstallHandler
-
initSubscribeListeners
protected void initSubscribeListeners(View<?> controller, ViewControllerReflectionInspector.ViewIntrospectionData viewIntrospectionData) -
getValueChangeEventListener
-
getComponentEventListener
-
getConsumerListener
-
findMethodTarget
-
findSubTargetRecursively
@Nullable protected Object findSubTargetRecursively(ComponentContainer viewLayout, String[] elements)
-