Propagnda : Weblog : MethodMissing in Java

screenshot

Java can be surprisingly dynamic if you're willing to push it a little, and put up with the fact that everything still needs to be defined in an interface. It is reasonably straightforward to get a Java class to handle a method that doesn't exist using dynamic proxies (this is how Java-On-Grails works). You just need to define an interface that represents the dynamic methods - ctl-1 in Eclipse is your friend here (simply write the call as you would in Groovy or Ruby - then get eclipse to generate the method...

http://www.jroller.com/ie/entry/methodmissing_in_java

これも後で読んでみるべ
DynamicProxyで。
←method_missing/__noSuchMethod__

http://b.hatena.ne.jp/entry/http://www.jroller.com/ie/entry/methodmissing_in_java