I\'m working now together with others in a grails project. I have to write some Java-classes. But I need access to an searchable object created with groovy. It seems, that t
In fact, you can.
Using reflections API you can access any class so far. At least I was able to :)
Class fooClass = Class.forName("FooBar"); Method fooMethod = fooClass.getMethod("fooMethod", String.class); String fooReturned = (String)fooMethod.invoke(fooClass.newInstance(), "I did it");