THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
ServiceCallContext - immutable user parameter map that will be implicitly passed to the service (and interceptor) on every method call.
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
public interface ServiceCallContext { public String attribute(String name); public byte[] binaryAttribute(String name); } |
ServiceCallInterceptor - intercepts service method calls.
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
public interface ServiceCallInterceptor extends Serializable { // Called BEFORE the service method is executed. public default void onInvoke(String mtd, Object[] args, @Nullable ServiceCallContext callCtx) throws ServiceInterceptException { // No-op. } // Called AFTER the service method is executed. public default void onComplete(String mtd, @Nullable Object res, @Nullable ServiceCallContext callCtx) throws ServiceInterceptException { // No-op. } // Called when onInvoke, onComplete or service method throws an exception. public default void onError(String mtd, Throwable err, @Nullable ServiceCallContext callCtx) { // No-op. } } |
...