Package io.jmix.flowui.sys.autowire
Class AbstractElementsDependencyInjector
java.lang.Object
io.jmix.flowui.sys.autowire.AbstractElementsDependencyInjector
- All Implemented Interfaces:
DependencyInjector
- Direct Known Subclasses:
FragmentElementsDependencyInjector,GeoMapViewElementsDependencyInjector,ViewElementsDependencyInjector
public abstract class AbstractElementsDependencyInjector
extends Object
implements DependencyInjector
-
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
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractElementsDependencyInjector(ReflectionCacheManager reflectionCacheManager) -
Method Summary
Modifier and TypeMethodDescriptionvoidautowire(DependencyInjector.AutowireContext<?> autowireContext) The method is invoked when the component instance is created.protected voiddoAutowiring(ReflectionCacheManager.AutowireElement autowireElement, com.vaadin.flow.component.Composite<?> view, Collection<Object> autowired) protected abstract ObjectgetAutowiredInstance(Class<?> type, String name, com.vaadin.flow.component.Composite<?> composite) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.jmix.flowui.sys.autowire.DependencyInjector
isApplicable
-
Field Details
-
reflectionCacheManager
-
-
Constructor Details
-
AbstractElementsDependencyInjector
-
-
Method Details
-
autowire
Description copied from interface:DependencyInjectorThe method is invoked when the component instance is created. Used to autowire dependencies to the UI component.- Specified by:
autowirein interfaceDependencyInjector- Parameters:
autowireContext- injection context
-
doAutowiring
protected void doAutowiring(ReflectionCacheManager.AutowireElement autowireElement, com.vaadin.flow.component.Composite<?> view, Collection<Object> autowired) -
getAutowiredInstance
-