use of org.eclipse.net4j.signal.SignalProtocol in project snow-owl by b2ihealthcare.
the class TransportClient method openCustomProtocols.
@SuppressWarnings("unchecked")
private void openCustomProtocols() {
// other client protocols
final List<ClientProtocolFactory> protocolFactories = getRegisteredClientProtocolFactories();
for (final ClientProtocolFactory clientProtocolFactory : protocolFactories) {
final SignalProtocol<Object> protocol = (SignalProtocol<Object>) clientProtocolFactory.create("");
openProtocol(protocol);
}
// also set up the RPC client...
final RpcProtocol rpcProtocol = RpcUtil.getRpcClientProtocol(IPluginContainer.INSTANCE);
openProtocol(rpcProtocol);
if (!env.isServer()) {
// ...the event bus, too.
final IEventBusProtocol eventBusProtocol = EventBusNet4jUtil.getClientProtocol(IPluginContainer.INSTANCE);
openProtocol(eventBusProtocol);
}
}
Aggregations