protected Object invokeAPIOutsideTransaction(Object[] parametersValues, Object apiImpl, Method method, String apiInterfaceName, Session session) throws Throwable { checkMethodAccessibility(apiImpl, apiInterfaceName, method, session, /* Not in transaction */false); return invokeAPI(method, apiImpl, parametersValues); }
@Override public Object call() throws Exception { try { return invokeAPI(method, apiImpl); } catch (final Throwable cause) { throw new ServerAPIRuntimeException(cause); } } };
@Override public Object call() throws Exception { try { return invokeAPI(method, apiImpl); } catch (final Throwable cause) { throw new ServerAPIRuntimeException(cause); } } };
protected Object invokeAPIOutsideTransaction(Object[] parametersValues, Object apiImpl, Method method, String apiInterfaceName, Session session) throws Throwable { checkMethodAccessibility(apiImpl, apiInterfaceName, method, session, /* Not in transaction */false); return invokeAPI(method, apiImpl, parametersValues); }
/** * @return true if the node is started, false otherwise. */ private boolean isNodeStarted() { try { final Object apiImpl = accessResolver.getAPIImplementation(PlatformAPI.class.getName()); final Method method = ClassReflector.getMethod(apiImpl.getClass(), IS_NODE_STARTED_METHOD_NAME); return (Boolean) invokeAPI(method, apiImpl); } catch (final Throwable e) { return false; } }
/** * @return true if the node is started, false otherwise. */ private boolean isNodeStarted() { try { final Object apiImpl = accessResolver.getAPIImplementation(PlatformAPI.class.getName()); final Method method = ClassReflector.getMethod(apiImpl.getClass(), IS_NODE_STARTED_METHOD_NAME); return (Boolean) invokeAPI(method, apiImpl); } catch (final Throwable e) { return false; } }
@Override public Object call() throws Exception { try { checkMethodAccessibility(apiImpl, apiInterfaceName, method, session, /* Already in a transaction */true); return invokeAPI(method, apiImpl, parametersValues); } catch (final Throwable cause) { throw new ServerAPIRuntimeException(cause); } } };
@Override public Object call() throws Exception { try { checkMethodAccessibility(apiImpl, apiInterfaceName, method, session, /* Already in a transaction */true); return invokeAPI(method, apiImpl, parametersValues); } catch (final Throwable cause) { throw new ServerAPIRuntimeException(cause); } } };
final Boolean paused; if (isAlreadyInTransaction) { paused = (Boolean) invokeAPI(method, apiImpl); } else { final UserTransactionService userTransactionService = selectUserTransactionService(session, getSessionType(session));
final Boolean paused; if (isAlreadyInTransaction) { paused = (Boolean) invokeAPI(method, apiImpl); } else { final UserTransactionService userTransactionService = selectUserTransactionService(session, getSessionType(session));
session = (Session) options.get(SESSION); sessionAccessor = beforeInvokeMethod(session, apiInterfaceName); return invokeAPI(apiInterfaceName, methodName, classNameParameters, parametersValues, session); } catch (final ServerAPIRuntimeException sapire) { throw sapire.getCause();
session = (Session) options.get(SESSION); sessionAccessor = beforeInvokeMethod(session, apiInterfaceName); return invokeAPI(apiInterfaceName, methodName, classNameParameters, parametersValues, session); } catch (final ServerAPIRuntimeException sapire) { throw sapire.getCause();