Package io.jmix.flowui.sys.vaadin
Class JmixSpringInstantiator
java.lang.Object
com.vaadin.flow.di.DefaultInstantiator
com.vaadin.flow.spring.SpringInstantiator
io.jmix.flowui.sys.vaadin.JmixSpringInstantiator
- All Implemented Interfaces:
- com.vaadin.flow.di.Instantiator,- Serializable
public class JmixSpringInstantiator
extends com.vaadin.flow.spring.SpringInstantiator
- See Also:
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContextprotected Collection<BeforeNavigationInitializer>
- 
Constructor SummaryConstructorsConstructorDescriptionJmixSpringInstantiator(com.vaadin.flow.server.VaadinService service, org.springframework.context.ApplicationContext context) Creates a new spring instantiator instance.
- 
Method SummaryModifier and TypeMethodDescription<T extends com.vaadin.flow.component.HasElement>
 TcreateRouteTarget(Class<T> routeTargetType, com.vaadin.flow.router.NavigationEvent event) <T> TgetOrCreate(Class<T> type) protected <T> voidprotected <T> voidinitBeforeNavigation(Class<T> routeTargetType, com.vaadin.flow.router.NavigationEvent event, T instance) Methods inherited from class com.vaadin.flow.spring.SpringInstantiatorcreateComponent, getApplicationClass, getI18NProvider, getMenuAccessControl, getServiceInitListenersMethods inherited from class com.vaadin.flow.di.DefaultInstantiatorgetClassLoader, getInitProperty, getServiceLoaderListenersMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.di.InstantiatorgetApplicationClass, getDependencyFilters, getIndexHtmlRequestListeners
- 
Field Details- 
applicationContextprotected org.springframework.context.ApplicationContext applicationContext
 
- 
- 
Constructor Details- 
JmixSpringInstantiatorpublic JmixSpringInstantiator(com.vaadin.flow.server.VaadinService service, org.springframework.context.ApplicationContext context) Creates a new spring instantiator instance.- Parameters:
- service- the service to use
- context- the application context
 
 
- 
- 
Method Details
- 
getOrCreate- Specified by:
- getOrCreatein interface- com.vaadin.flow.di.Instantiator
- Overrides:
- getOrCreatein class- com.vaadin.flow.spring.SpringInstantiator
 
- 
init