接口的使用
org.springframework.context.event.SmartApplicationListener
使用SmartApplicationListener的程序包 程序包 说明 org.springframework.context.event Support classes for application events, like standard context events.org.springframework.messaging.simp.user Support for handling messages to "user" destinations (i.e. destinations that are unique to a user's sessions), primarily translating the destinations and then forwarding the updated message to the broker.org.springframework.web.socket.messaging WebSocket integration for Spring's messaging module.org.springframework.context.event中SmartApplicationListener的使用
实现SmartApplicationListener的org.springframework.context.event中的类 修饰符和类型 类 说明 class
GenericApplicationListenerAdapter
GenericApplicationListener
adapter that determines supported event types through introspecting the generically declared type of the target listener.class
SourceFilteringListener
ApplicationListener
decorator that filters events from a specified event source, invoking its delegate listener for matchingApplicationEvent
objects only.org.springframework.messaging.simp.user中SmartApplicationListener的使用
实现SmartApplicationListener的org.springframework.messaging.simp.user中的类 修饰符和类型 类 说明 class
MultiServerUserRegistry
SimpUserRegistry
that looks up users in a "local" user registry as well as a set of "remote" user registries.org.springframework.web.socket.messaging中SmartApplicationListener的使用
实现SmartApplicationListener的org.springframework.web.socket.messaging中的类 修饰符和类型 类 说明 class
DefaultSimpUserRegistry
A default implementation ofSimpUserRegistry
that relies onAbstractSubProtocolEvent
application context events to keep track of connected users and their subscriptions.