Class WeComChannelRegistry

java.lang.Object
io.agentscope.extensions.channel.wecom.WeComChannelRegistry

public final class WeComChannelRegistry extends Object
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.