Package com.vaadin.cdi
Class CdiInstantiator
java.lang.Object
com.vaadin.cdi.AbstractCdiInstantiator
com.vaadin.cdi.CdiInstantiator
- All Implemented Interfaces:
com.vaadin.flow.di.Instantiator,Serializable
Default CDI instantiator.
- Since:
- 10.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCdiInstantiator(jakarta.enterprise.inject.spi.BeanManager beanManager, com.vaadin.flow.server.VaadinService service) Creates a new CDI instantiator for the given service. -
Method Summary
Modifier and TypeMethodDescription<T extends com.vaadin.flow.component.Component>
TcreateComponent(Class<T> componentClass) jakarta.enterprise.inject.spi.BeanManagerGets the bean manager used for looking up CDI beans.protected com.vaadin.flow.di.DefaultInstantiatorGets the instantiator used when an instance cannot be provided as a CDI bean.Methods inherited from class com.vaadin.cdi.AbstractCdiInstantiator
getI18NProvider, getMenuAccessControl, getOrCreate, getPageTitleGenerator, getServiceInitListenersMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.di.Instantiator
createRouteTarget, getApplicationClass, getApplicationClass, getDependencyFilters, getIndexHtmlRequestListeners
-
Constructor Details
-
CdiInstantiator
public CdiInstantiator(jakarta.enterprise.inject.spi.BeanManager beanManager, com.vaadin.flow.server.VaadinService service) Creates a new CDI instantiator for the given service.- Parameters:
beanManager- the bean manager used for looking up CDI beansservice- the Vaadin service the instantiator is created for- Since:
- 15.0
-
-
Method Details
-
getDelegate
protected com.vaadin.flow.di.DefaultInstantiator getDelegate()Description copied from class:AbstractCdiInstantiatorGets the instantiator used when an instance cannot be provided as a CDI bean.- Specified by:
getDelegatein classAbstractCdiInstantiator- Returns:
- the fallback instantiator
-
getBeanManager
public jakarta.enterprise.inject.spi.BeanManager getBeanManager()Description copied from class:AbstractCdiInstantiatorGets the bean manager used for looking up CDI beans.- Specified by:
getBeanManagerin classAbstractCdiInstantiator- Returns:
- the bean manager
-
createComponent
-