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
FieldsModifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContextFields inherited from class io.jmix.flowui.sys.autowire.AbstractElementsDependencyInjector
reflectionCacheManager - 
Constructor Summary
ConstructorsConstructorDescriptionFragmentElementsDependencyInjector(org.springframework.context.ApplicationContext applicationContext, ReflectionCacheManager reflectionCacheManager)  - 
Method Summary
Modifier and TypeMethodDescriptionprotected MessageBundlecreateMessageBundle(Fragment<?> fragment) protected ObjectgetAutowiredInstance(Class<?> type, String name, com.vaadin.flow.component.Composite<?> composite) booleanisApplicable(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:
 getAutowiredInstancein classAbstractElementsDependencyInjector
 - 
createMessageBundle
 - 
isApplicable
Description copied from interface:DependencyInjectorChecks whether this injector can wire the passed injection context.- Parameters:
 autowireContext- injection content that need to be checked- Returns:
 trueif the passed injection context can be wired,falseotherwise
 
 -