Class QuarkusInstantiator

  • All Implemented Interfaces:
    com.vaadin.flow.di.Instantiator, Serializable

    @ApplicationScoped
    public class QuarkusInstantiator
    extends Object
    implements com.vaadin.flow.di.Instantiator
    Instantiator implementation based on Quarkus DI feature. Quarkus DI solution (also called ArC) is based on the Contexts and Dependency Injection for Java 2.0 specification, but it is not a full CDI implementation. Only a subset of the CDI features is implemented. See Quarkus CDI Reference for further details.
    See Also:
    Instantiator, Serialized Form
    • Constructor Detail

      • QuarkusInstantiator

        public QuarkusInstantiator()
    • Method Detail

      • getServiceClass

        public Class<? extends com.vaadin.flow.server.VaadinService> getServiceClass()
        Gets the service class that this instantiator is supposed to work with.
        Returns:
        the service class this instantiator is supposed to work with.
      • getBeanManager

        public javax.enterprise.inject.spi.BeanManager getBeanManager()
        Gets the BeanManager instance.
        Returns:
        the BeanManager instance.
      • init

        public boolean init​(com.vaadin.flow.server.VaadinService service)
        Specified by:
        init in interface com.vaadin.flow.di.Instantiator
      • getOrCreate

        public <T> T getOrCreate​(Class<T> type)
        Specified by:
        getOrCreate in interface com.vaadin.flow.di.Instantiator
      • getI18NProvider

        public com.vaadin.flow.i18n.I18NProvider getI18NProvider()
        Specified by:
        getI18NProvider in interface com.vaadin.flow.di.Instantiator
      • getServiceInitListeners

        public Stream<com.vaadin.flow.server.VaadinServiceInitListener> getServiceInitListeners()
        Specified by:
        getServiceInitListeners in interface com.vaadin.flow.di.Instantiator
      • createComponent

        public <T extends com.vaadin.flow.component.Component> T createComponent​(Class<T> componentClass)
        Specified by:
        createComponent in interface com.vaadin.flow.di.Instantiator