@Override public void aroundInvoke(final RemoteCallContext callContext) { if (callContext.getMethodName().equals("login")) { login(callContext); } else if (callContext.getMethodName().equals("logout")) { logout(callContext); } else if (callContext.getMethodName().equals("getUser")) { getUser(callContext); } else if (callContext.getMethodName().equals("isLoggedIn")) { isLoggedIn(callContext); } else { callContext.proceed(); } }
@Override public void aroundInvoke(final RemoteCallContext callContext) { if (callContext.getMethodName().equals("login")) { login(callContext); } else if (callContext.getMethodName().equals("logout")) { logout(callContext); } else if (callContext.getMethodName().equals("getUser")) { getUser(callContext); } else if (callContext.getMethodName().equals("isLoggedIn")) { isLoggedIn(callContext); } else { callContext.proceed(); } }