main website home
  • About this blog

    This blog features updates, opinions, and technical notes from Caucho engineers about Caucho products, the enterprise Java industry, and PHP. Caucho Technology is the creator of the Resin Application Server and the Quercus PHP in Java engine. A leader in Java performance since 1998, Caucho is a Sun JavaEE licensee with over 9000 customers worldwide.
  • Tags

    ajaxworld bam candi cdi cloud cluster comet configuration deploy devoxx eclipse ejb embedded flash flex google app engine hessian hmtp ioc java ee 6 javaone javazone jms messaging newsletter nyjug osgi php pomegranate quercus resin resin 4.0 REST servlet sfjug silicon valley code camp spring testing training tssjs watchdog webbeans web profile websockets wordpress
  • Meta

    • Register
    • Log in
    • Entries RSS
    • Comments RSS
    • WordPress.org
« CDI/EJB Lite TCK work
EJB/CDI shared Aspects »

@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

This entry was posted on Thursday, April 29th, 2010 at 10:25 am and is filed under Uncategorized. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a Reply

You must be logged in to post a comment.


Caucho Technology is proudly powered by WordPress and Quercus®
Entries (RSS) and Comments (RSS).

  • HOME |
  • CONTACT US |
  • DOCUMENTATION |
  • BLOG |
  • WIKI 4 |
  • WIKI 3 |
  • Resin: Java Application Server
Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
caucho® , resin® and quercus® are registered trademarks of Caucho Technology, Inc.
resin® is a cloud optimized, java® application server that supports the java ee webprofile ®