Created
December 31, 2014 21:28
-
-
Save tylertreat/5905e71d1dc535529b99 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| public class HelloWorldInvocationHandler implements InvocationHandler { | |
| private final Object proxied; | |
| public HelloWorldInvocationHandler(Object proxied) { | |
| this.proxied = proxied; | |
| } | |
| public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { | |
| System.out.println("Hello World"); | |
| return method.invoke(proxied, args); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment