dev@glassfish.java.net

osgi.bundle review: common/glassfish-naming/osgi.bundle

From: Cheng Fang <cheng.fang_at_oracle.com>
Date: Mon, 05 Jul 2010 10:16:02 -0400

Hi,

Please review the change to common/glassfish-naming/osgi.bundle:

/Users/cf126330/glassfish-svn/trunk/v3/common/glassfish-naming > svn diff
Index: osgi.bundle
===================================================================
--- osgi.bundle (revision 38358)
+++ osgi.bundle (working copy)
@@ -1,5 +1,6 @@
  Bundle-Activator: com.sun.enterprise.naming.util.NamingActivator
  -exportcontents: \
+ com.sun.enterprise.naming; \
                          com.sun.enterprise.naming.impl; \
                          com.sun.enterprise.naming.spi; \
                          com.sun.enterprise.naming.util;
version=${project.osgi.version}


This is to fix issue
https://glassfish.dev.java.net/issues/show_bug.cgi?id=12084 (Unable to
lookup using SerialInitContextFactory and ClassNotFound thrown).

I'm adding com.sun.enterprise.naming; to the list of exports. There
are 2 classes in this package:

ll src/main/java/com/sun/enterprise/naming/
total 24
-rw-r--r-- 1 staff 7884 May 13 10:55 GlassFishNamingBuilder.java
-rw-r--r-- 1 staff 3057 May 13 10:55 SerialInitContextFactory.java
drwxr-xr-x 20 staff 680 May 13 10:55 util/
drwxr-xr-x 18 staff 612 May 13 10:55 impl/
drwxr-xr-x 5 staff 170 May 13 10:55 spi/

To fix the issue I only need to export
com.sun.enterprise.naming.SerialInitContextFactory. Is there a way to
export a single class in osgi.bundle? If no, then we will have to
export this package.

Thanks,
-cheng