Class VaadinRouteScope

    • Constructor Detail

      • VaadinRouteScope

        public VaadinRouteScope()
    • Method Detail

      • postProcessBeanFactory

        public void postProcessBeanFactory​(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
        Specified by:
        postProcessBeanFactory in interface org.springframework.beans.factory.config.BeanFactoryPostProcessor
      • getConversationId

        public String getConversationId()
        Specified by:
        getConversationId in interface org.springframework.beans.factory.config.Scope
      • getBeanStore

        protected com.vaadin.flow.spring.scopes.BeanStore getBeanStore()
        Gets bean store for this scope.
        Returns:
        bean store for the scope
      • resolveContextualObject

        public Object resolveContextualObject​(String key)
        Specified by:
        resolveContextualObject in interface org.springframework.beans.factory.config.Scope
      • get

        public Object get​(String name,
                          org.springframework.beans.factory.ObjectFactory<?> objectFactory)
        Specified by:
        get in interface org.springframework.beans.factory.config.Scope
      • remove

        public Object remove​(String name)
        Specified by:
        remove in interface org.springframework.beans.factory.config.Scope
      • registerDestructionCallback

        public void registerDestructionCallback​(String name,
                                                Runnable callback)
        Specified by:
        registerDestructionCallback in interface org.springframework.beans.factory.config.Scope
      • getVaadinSession

        protected VaadinSession getVaadinSession()
        Gets current Vaadin session.

        Throws IllegalStateException if there is no current Vaadin session scope or it's not opened.

        Returns:
        the current Vaadin session