154155156157158159160161162
if (!epts.isEmpty()) { context.getBus().subscribe(loadClass.getSimpleName() + ":RPC", new RemoteServiceCallback(epts)); } if (!commandPoints.isEmpty()) { context.getBus().subscribe(svcName, new CommandBindingsCallback(commandPoints, svc)); } } }
415416417418419420421422423
if (commandPoints.isEmpty()) { bus.subscribe(subjectName, callback); } else { bus.subscribeLocal(subjectName, new CommandBindingsCallback(commandPoints, callback, bus)); } } }