Skip to content

Instantly share code, notes, and snippets.

@tylertreat
Created December 31, 2014 21:28
Show Gist options
  • Select an option

  • Save tylertreat/5905e71d1dc535529b99 to your computer and use it in GitHub Desktop.

Select an option

Save tylertreat/5905e71d1dc535529b99 to your computer and use it in GitHub Desktop.
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