Last active
August 29, 2015 14:00
-
-
Save csadilek/ee8cd941cd3d0520f9c6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Dependent | |
@InterceptsRemoteCall({ MyRemoteInterface.class, MyOtherRemoteInterface.class }) | |
public class MyCacheInterceptor implements RpcInterceptor { | |
@Inject | |
private MyAppCache cache; | |
@Override | |
public void aroundInvoke(final RemoteCallContext context) { | |
// e.g check if the result is cached and carry out | |
// the actual call only in case it's not. | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment