Add plugin channel support for plugins.

This commit is contained in:
md_5
2013-01-22 10:20:33 +11:00
parent 39506f3fa6
commit 4b9b2cbb96
4 changed files with 66 additions and 3 deletions

View File

@@ -152,4 +152,26 @@ public abstract class ProxyServer
* instance to fail to boot
*/
public abstract void start() throws Exception;
/**
* Register a channel for use with plugin messages. This is required by some
* server / client implementations.
*
* @param channel the channel to register
*/
public abstract void registerChannel(String channel);
/**
* Unregister a previously registered channel.
*
* @param channel the channel to unregister
*/
public abstract void unregisterChannel(String channel);
/**
* Get an immutable set of all registered plugin channels.
*
* @return registered plugin channels
*/
public abstract Collection<String> getChannels();
}