Package io.jmix.flowui.sys.autowire
Class AbstractSupplyDependencyInjector
java.lang.Object
io.jmix.flowui.sys.autowire.AbstractSupplyDependencyInjector
- All Implemented Interfaces:
DependencyInjector
- Direct Known Subclasses:
FragmentSupplyDependencyInjector
,ViewSupplyDependencyInjector
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.jmix.flowui.sys.autowire.DependencyInjector
DependencyInjector.AutowireContext<T extends com.vaadin.flow.component.Composite<?>>
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractSupplyDependencyInjector
(ReflectionCacheManager reflectionCacheManager) -
Method Summary
Modifier and TypeMethodDescriptionvoid
autowire
(DependencyInjector.AutowireContext<?> autowireContext) The method is invoked when the component instance is created.protected Supplier<?>
createSupplierInstance
(com.vaadin.flow.component.Composite<?> composite, Method method) protected void
doAutowiring
(ReflectionCacheManager.AnnotatedMethod<Supply> annotatedMethod, com.vaadin.flow.component.Composite<?> composite, Collection<Object> autowired) protected abstract Object
getSupplyTargetInstance
(com.vaadin.flow.component.Composite<?> composite, Supply annotation) protected MethodHandle
getSupplyTargetSetterMethod
(ReflectionCacheManager.AnnotatedMethod<Supply> annotatedMethod, Class<?> instanceClass) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.jmix.flowui.sys.autowire.DependencyInjector
isApplicable
-
Field Details
-
reflectionCacheManager
-
-
Constructor Details
-
AbstractSupplyDependencyInjector
-
-
Method Details
-
autowire
Description copied from interface:DependencyInjector
The method is invoked when the component instance is created. Used to autowire dependencies to the UI component.- Specified by:
autowire
in interfaceDependencyInjector
- Parameters:
autowireContext
- injection context
-
doAutowiring
protected void doAutowiring(ReflectionCacheManager.AnnotatedMethod<Supply> annotatedMethod, com.vaadin.flow.component.Composite<?> composite, Collection<Object> autowired) -
getSupplyTargetInstance
-
getSupplyTargetSetterMethod
protected MethodHandle getSupplyTargetSetterMethod(ReflectionCacheManager.AnnotatedMethod<Supply> annotatedMethod, Class<?> instanceClass) -
createSupplierInstance
-