Package com.vaadin.quarkus
Class QuarkusInstantiator
- java.lang.Object
-
- com.vaadin.quarkus.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 Summary
Constructors Constructor Description QuarkusInstantiator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends com.vaadin.flow.component.Component>
TcreateComponent(Class<T> componentClass)javax.enterprise.inject.spi.BeanManagergetBeanManager()Gets theBeanManagerinstance.com.vaadin.flow.i18n.I18NProvidergetI18NProvider()<T> TgetOrCreate(Class<T> type)Class<? extends com.vaadin.flow.server.VaadinService>getServiceClass()Gets the service class that this instantiator is supposed to work with.Stream<com.vaadin.flow.server.VaadinServiceInitListener>getServiceInitListeners()booleaninit(com.vaadin.flow.server.VaadinService service)
-
-
-
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 theBeanManagerinstance.- Returns:
- the
BeanManagerinstance.
-
init
public boolean init(com.vaadin.flow.server.VaadinService service)
- Specified by:
initin interfacecom.vaadin.flow.di.Instantiator
-
getOrCreate
public <T> T getOrCreate(Class<T> type)
- Specified by:
getOrCreatein interfacecom.vaadin.flow.di.Instantiator
-
getI18NProvider
public com.vaadin.flow.i18n.I18NProvider getI18NProvider()
- Specified by:
getI18NProviderin interfacecom.vaadin.flow.di.Instantiator
-
getServiceInitListeners
public Stream<com.vaadin.flow.server.VaadinServiceInitListener> getServiceInitListeners()
- Specified by:
getServiceInitListenersin interfacecom.vaadin.flow.di.Instantiator
-
createComponent
public <T extends com.vaadin.flow.component.Component> T createComponent(Class<T> componentClass)
- Specified by:
createComponentin interfacecom.vaadin.flow.di.Instantiator
-
-