Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

This example looks at the issues surrounding a mixed Java/Groovy application.

The legacy version of our application

Suppose you have an initial application written in Java. It deals with packages sent through the post. It has the following Postpack class (you would typically need some additional fields but we have simplified our domain to keep the example simple):

Now suppose you also have a sort helper class ZipSorter as follows:

Finally, you have a main application as follows:

  • No labels