Java Integration
The Gist
The Scala tour doesn’t directly cover the fact that you can access Java code from Scala.
My Interpretation
In Scala, you have access to any Java library code, from the main libraries in java.* and javax.* to any Java code in your classpath.
Here is a Servlet implemented in Scala that outputs a simple “hello world” in HTML (using XmlLiterals).
My Thoughts on This Feature
This will be crucial for the adoption of Scala, especially in large enterprises that are slow to change their technical architecture.
Last Updated 08/22/2009 at 04:14:34 PM by davec
blog comments powered by Disqus
All Content by David Copeland is licensed under a
Creative Commons Attribution-Noncommercial-Share Alike 3.0 United States License.