@Override
  public ObjectAdapter invoke(
      final ObjectAction owningAction,
      final ObjectAdapter targetAdapter,
      final ObjectAdapter[] arguments) {

    final InvocationResult invocationResult =
        this.internalInvoke(owningAction, targetAdapter, arguments);

    // Perhaps the Action was not properly invoked (i.e. an exception was raised).
    if (invocationResult.getWhetherInvoked()) {
      // If invoked, then send the ActionInvokedEvent to the EventBus.
      postEvent(owningAction, targetAdapter, arguments);
    }

    return invocationResult.getAdapter();
  }
Example #2
0
 public String getHttpBody() {
   return invocationResult.getHttpBody();
 }
Example #3
0
 public int getHttpStatusCode() {
   return invocationResult.getStatusCode();
 }