[jboss-cvs] JBossAS SVN: r94454 - projects/jboss-osgi/projects/runtime/microcontainer/trunk/src/main/java/org/jboss/osgi/framework/bundle.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed Oct 7 05:51:39 EDT 2009
Author: thomas.diesler at jboss.com
Date: 2009-10-07 05:51:38 -0400 (Wed, 07 Oct 2009)
New Revision: 94454
Modified:
projects/jboss-osgi/projects/runtime/microcontainer/trunk/src/main/java/org/jboss/osgi/framework/bundle/OSGiSystemState.java
Log:
[JBOSGI-138] Proper system BundleContext implementation
Return null from findEntry (like) methods
Modified: projects/jboss-osgi/projects/runtime/microcontainer/trunk/src/main/java/org/jboss/osgi/framework/bundle/OSGiSystemState.java
===================================================================
--- projects/jboss-osgi/projects/runtime/microcontainer/trunk/src/main/java/org/jboss/osgi/framework/bundle/OSGiSystemState.java 2009-10-07 09:47:31 UTC (rev 94453)
+++ projects/jboss-osgi/projects/runtime/microcontainer/trunk/src/main/java/org/jboss/osgi/framework/bundle/OSGiSystemState.java 2009-10-07 09:51:38 UTC (rev 94454)
@@ -26,6 +26,7 @@
import java.net.URL;
import java.util.Enumeration;
+import org.jboss.logging.Logger;
import org.jboss.osgi.framework.metadata.OSGiMetaData;
import org.jboss.osgi.spi.NotImplementedException;
import org.osgi.framework.BundleException;
@@ -40,6 +41,9 @@
*/
public class OSGiSystemState extends AbstractBundleState
{
+ /** The log */
+ private static final Logger log = Logger.getLogger(OSGiSystemState.class);
+
/**
* Create a new OSGiSystemBundle.
* @param bundleManager the bundle manager associated with the system bundle
@@ -69,34 +73,34 @@
@SuppressWarnings("unchecked")
public Enumeration findEntries(String path, String filePattern, boolean recurse)
{
- // [JBOSGI-138] Proper system BundleContext implementation
- throw new NotImplementedException();
+ log.warn("[JBOSGI-138] findEntries(" + path + "," + filePattern + "," + recurse + ")");
+ return null;
}
public URL getEntry(String path)
{
- // [JBOSGI-138] Proper system BundleContext implementation
- throw new NotImplementedException();
+ log.warn("[JBOSGI-138] getEntry(" + path + ")");
+ return null;
}
@SuppressWarnings("unchecked")
public Enumeration getEntryPaths(String path)
{
- // [JBOSGI-138] Proper system BundleContext implementation
- throw new NotImplementedException();
+ log.warn("[JBOSGI-138] getEntryPaths(" + path + ")");
+ return null;
}
public URL getResource(String name)
{
- // [JBOSGI-138] Proper system BundleContext implementation
- throw new NotImplementedException();
+ log.warn("[JBOSGI-138] getResource(" + name + ")");
+ return null;
}
@SuppressWarnings("unchecked")
public Enumeration getResources(String name) throws IOException
{
- // [JBOSGI-138] Proper system BundleContext implementation
- throw new NotImplementedException();
+ log.warn("[JBOSGI-138] getResources(" + name + ")");
+ return null;
}
public void start(int options) throws BundleException
More information about the jboss-cvs-commits
mailing list