@Module - previewing JDK 7
For me the key feature of JDK 7 is the new “module” scope for classes and methods because it will finally let us distinguish between classes we want to export from internal classes that need visibility across our internal packages.
A class defined as “module class” would be internal to Resin but available to all Resin classes unlike package-private, which constrains our internal organization.
Since we can’t use JDK 7 yet, I’ve created a @Module annotation to mark the Resin-internal classes, even though they’re still declared as “public”. If we get time, we might update the JavaDoc to skip @Module tags, cutting down the clutter of non-public classes exposed as public due to the current JDK’s limitations.
Tags: jdk7, modularity
