Class WeComChannelRegistry
java.lang.Object
io.agentscope.extensions.channel.wecom.WeComChannelRegistry
Process-wide lookup table from
channelId to WeComChannel instance. Used by
WeComCallbackController to dispatch URL-routed requests onto the correct channel.
Channels register themselves in WeComChannel.start() and remove on
WeComChannel.stop(). The controller obtains the same singleton via
instance() (no Spring wiring required), since the channel is created by
ChannelFactory's static factory and the controller
by Spring's component scan — neither knows about the other ahead of time.
-
Method Summary
Modifier and TypeMethodDescriptionstatic WeComChannelRegistryinstance()Returns the process-wide singleton instance.voidregister(WeComChannel channel) voidunregister(String channelId)
-
Method Details
-
instance
Returns the process-wide singleton instance. -
register
-
unregister
-
get
-