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 Summary

    Fields
    Modifier and Type
    Field
    Description
    protected org.springframework.context.ApplicationContext
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    JmixSpringInstantiator(com.vaadin.flow.server.VaadinService service, org.springframework.context.ApplicationContext context)
    Creates a new spring instantiator instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> T
    getOrCreate(Class<T> type)
     
    protected <T> void
    init(Class<T> type, T instance)
     

    Methods inherited from class com.vaadin.flow.spring.SpringInstantiator

    createComponent, getI18NProvider, getServiceInitListeners

    Methods inherited from class com.vaadin.flow.di.DefaultInstantiator

    getServiceLoaderListeners, init

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.vaadin.flow.di.Instantiator

    createRouteTarget, getBootstrapListeners, getDependencyFilters, getIndexHtmlRequestListeners
  • Field Details

    • applicationContext

      protected org.springframework.context.ApplicationContext applicationContext
  • Constructor Details

    • JmixSpringInstantiator

      public 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

      public <T> T getOrCreate(Class<T> type)
      Specified by:
      getOrCreate in interface com.vaadin.flow.di.Instantiator
      Overrides:
      getOrCreate in class com.vaadin.flow.spring.SpringInstantiator
    • init

      protected <T> void init(Class<T> type, T instance)