Package com.vaadin.cdi
Class CdiInstantiatorFactory
java.lang.Object
com.vaadin.cdi.CdiInstantiatorFactory
- All Implemented Interfaces:
com.vaadin.flow.di.InstantiatorFactory
public class CdiInstantiatorFactory
extends Object
implements com.vaadin.flow.di.InstantiatorFactory
Default CDI instantiator factory.
Can be overridden by a @VaadinServiceEnabled CDI
Alternative/Specializes, or can be customized with a Decorator.
- Since:
- 15.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.vaadin.flow.di.InstantiatorcreateInstantitor(com.vaadin.flow.server.VaadinService service) Class<? extends com.vaadin.flow.server.VaadinService> Gets the service class this factory creates instantiators for.
-
Constructor Details
-
CdiInstantiatorFactory
public CdiInstantiatorFactory()Creates a new CDI instantiator factory.
-
-
Method Details
-
createInstantitor
public com.vaadin.flow.di.Instantiator createInstantitor(com.vaadin.flow.server.VaadinService service) - Specified by:
createInstantitorin interfacecom.vaadin.flow.di.InstantiatorFactory
-
getServiceClass
Gets the service class this factory creates instantiators for. The factory only creates an instantiator for services that are instances of this class.- Returns:
- the supported service class
-