mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-10-11 01:13:41 +00:00
del[protocol]: deprecate protocolId() method
This commit is contained in:
1 parent
7c1f3ffdc0
commit
0e591eaddb
7 files changed
+16
-9
No files matched your search
@@ -75,9 +75,16 @@ public class ProtocolManager {
|
||||
return protocols[protocolId];
|
||||
}
|
||||
|
||||
public static IProtocolRegistration getProtocol(Class<?> protocolClass) {
|
||||
return getProtocol(protocolId(protocolClass));
|
||||
}
|
||||
|
||||
public static ProtocolModule moduleByProtocolId(short id) {
|
||||
return modules[protocols[id].module()];
|
||||
}
|
||||
public static ProtocolModule moduleByProtocol(Class<?> clazz) {
|
||||
return moduleByProtocolId(protocolId(clazz));
|
||||
}
|
||||
|
||||
/**
|
||||
* Find the module based on the module ID
|
||||
|
||||
Reference in new issue
Block a user