Package io.jmix.flowui.sys.autowire
Class FragmentElementsDependencyInjector
java.lang.Object
io.jmix.flowui.sys.autowire.AbstractElementsDependencyInjector
io.jmix.flowui.sys.autowire.FragmentElementsDependencyInjector
- All Implemented Interfaces:
DependencyInjector
@Order(910)
@Component("flowui_FragmentElementsDependencyInjector")
public class FragmentElementsDependencyInjector
extends AbstractElementsDependencyInjector
An injector that autowires a fields and setters methods that are annotated by the
ViewComponent
annotation
in the Fragment
.-
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
Modifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContext
Fields inherited from class io.jmix.flowui.sys.autowire.AbstractElementsDependencyInjector
reflectionCacheManager
-
Constructor Summary
ConstructorDescriptionFragmentElementsDependencyInjector
(org.springframework.context.ApplicationContext applicationContext, ReflectionCacheManager reflectionCacheManager) -
Method Summary
Modifier and TypeMethodDescriptionprotected MessageBundle
createMessageBundle
(Fragment<?> fragment) protected Object
getAutowiredInstance
(Class<?> type, String name, com.vaadin.flow.component.Composite<?> composite) boolean
isApplicable
(DependencyInjector.AutowireContext<?> autowireContext) Checks whether this injector can wire the passed injection context.Methods inherited from class io.jmix.flowui.sys.autowire.AbstractElementsDependencyInjector
autowire, doAutowiring
-
Field Details
-
applicationContext
protected org.springframework.context.ApplicationContext applicationContext
-
-
Constructor Details
-
FragmentElementsDependencyInjector
public FragmentElementsDependencyInjector(org.springframework.context.ApplicationContext applicationContext, ReflectionCacheManager reflectionCacheManager)
-
-
Method Details
-
getAutowiredInstance
@Nullable protected Object getAutowiredInstance(Class<?> type, String name, com.vaadin.flow.component.Composite<?> composite) - Specified by:
getAutowiredInstance
in classAbstractElementsDependencyInjector
-
createMessageBundle
-
isApplicable
Description copied from interface:DependencyInjector
Checks whether this injector can wire the passed injection context.- Parameters:
autowireContext
- injection content that need to be checked- Returns:
true
if the passed injection context can be wired,false
otherwise
-