org.springframework.web.socket.handler

Class BeanCreatingHandlerProvider<T>

  • java.lang.Object
    • org.springframework.web.socket.handler.BeanCreatingHandlerProvider<T>
  • Type Parameters:
    T - the handler type
    All Implemented Interfaces:
    Aware, BeanFactoryAware


    public class BeanCreatingHandlerProvider<T>
    extends java.lang.Object
    implements BeanFactoryAware
    Instantiates a target handler through a Spring BeanFactory and also provides an equivalent destroy method. Mainly for internal use to assist with initializing and destroying handlers with per-connection lifecycle.
    Since:
    4.0
    Author:
    Rossen Stoyanchev
    • Constructor Detail

      • BeanCreatingHandlerProvider

        public BeanCreatingHandlerProvider(java.lang.Class<? extends T> handlerType)
    • Method Detail

      • destroy

        public void destroy(T handler)
      • getHandlerType

        public java.lang.Class<? extends T> getHandlerType()
      • getHandler

        public T getHandler()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object