public class SpringInstantiator
extends com.vaadin.flow.di.DefaultInstantiator
| Constructor and Description |
|---|
SpringInstantiator(com.vaadin.flow.server.VaadinService service,
org.springframework.context.ApplicationContext context)
Creates a new spring instantiator instance.
|
| Modifier and Type | Method and Description |
|---|---|
<T extends com.vaadin.flow.component.Component> |
createComponent(Class<T> componentClass) |
com.vaadin.flow.i18n.I18NProvider |
getI18NProvider() |
<T> T |
getOrCreate(Class<T> type)
Hands over an existing bean or tries to instantiate one with the
following rules:
If exactly one bean is present in the context, it returns this bean.
|
java.util.stream.Stream<com.vaadin.flow.server.VaadinServiceInitListener> |
getServiceInitListeners() |
public SpringInstantiator(com.vaadin.flow.server.VaadinService service,
org.springframework.context.ApplicationContext context)
service - the service to usecontext - the application contextpublic java.util.stream.Stream<com.vaadin.flow.server.VaadinServiceInitListener> getServiceInitListeners()
getServiceInitListeners in interface com.vaadin.flow.di.InstantiatorgetServiceInitListeners in class com.vaadin.flow.di.DefaultInstantiatorpublic <T extends com.vaadin.flow.component.Component> T createComponent(Class<T> componentClass)
createComponent in interface com.vaadin.flow.di.InstantiatorcreateComponent in class com.vaadin.flow.di.DefaultInstantiatorpublic com.vaadin.flow.i18n.I18NProvider getI18NProvider()
getI18NProvider in interface com.vaadin.flow.di.InstantiatorgetI18NProvider in class com.vaadin.flow.di.DefaultInstantiatorpublic <T> T getOrCreate(Class<T> type)
getOrCreate in interface com.vaadin.flow.di.InstantiatorgetOrCreate in class com.vaadin.flow.di.DefaultInstantiatorCopyright © 2019 Vaadin Ltd. All Rights Reserved.