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 Supplier<?>createSupplierInstance(View<?> controller, Method method) protected voiddoInjection(ViewControllerReflectionInspector.InjectElement injectElement, View<?> controller) protected ObjectfindMethodTarget(View<?> controller, String target) protected ObjectfindSubTargetRecursively(com.vaadin.flow.component.Component 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 ObjectgetSupplyTargetInstance(View<?> controller, Supply annotation) protected MethodHandlegetSupplyTargetSetterMethod(ViewControllerReflectionInspector.AnnotatedMethod<Supply> annotatedMethod, Class<?> instanceClass) protected <A extends Annotation>
ObjectgetTargetInstance(A annotation, View<?> controller, String targetId, Target target) 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 voidinitSupplyMethods(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
 - 
initSupplyMethods
protected void initSupplyMethods(View<?> controller, ViewControllerReflectionInspector.ViewIntrospectionData viewIntrospectionData)  - 
createSupplierInstance
 - 
getSupplyTargetSetterMethod
protected MethodHandle getSupplyTargetSetterMethod(ViewControllerReflectionInspector.AnnotatedMethod<Supply> annotatedMethod, Class<?> instanceClass)  - 
getSupplyTargetInstance
 - 
getTargetInstance
@Nullable protected <A extends Annotation> Object getTargetInstance(A annotation, View<?> controller, String targetId, Target target)  - 
findMethodTarget
 - 
findSubTargetRecursively
 
 -