Announcement Announcement Module
No announcement yet.
Spring + Groovy : Multiple interdependent Groovy scripts Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring + Groovy : Multiple interdependent Groovy scripts

    I have a Java interface implemented by a Groovy class. The groovy class is loaded by Spring via <lang:groovy ... script-source=""/> entry in application-context.xml. This works fine and the rest of the Java code doesn't even know that the implementation is provided by Groovy
    The groovy class has grown little too big and I have broken it up into multiple classes (in separate files). The problem now is to let Spring load all these classes together. The script-source attribute in application-context.xml takes only one script name and I get Groovy compile error without other dependent classes loaded up by Spring
    What is the recommended way to load multiple, interdependent Groovy classes in Spring?

  • #2
    This question has been asked on StackOverflow.

    The forums are moving to stackoverflow, a page explaining all this will be available there in a few days: