[jboss-svn-commits] JBL Code SVN: r23608 - labs/jbossesb/workspace/skeagh/container/osgi/src/main/java/org/jboss/esb/osgi.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Tue Oct 28 08:31:07 EDT 2008
Author: beve
Date: 2008-10-28 08:31:07 -0400 (Tue, 28 Oct 2008)
New Revision: 23608
Modified:
labs/jbossesb/workspace/skeagh/container/osgi/src/main/java/org/jboss/esb/osgi/BundleResourceLocator.java
Log:
Added javadocs to make the reds go away.
Modified: labs/jbossesb/workspace/skeagh/container/osgi/src/main/java/org/jboss/esb/osgi/BundleResourceLocator.java
===================================================================
--- labs/jbossesb/workspace/skeagh/container/osgi/src/main/java/org/jboss/esb/osgi/BundleResourceLocator.java 2008-10-28 11:05:19 UTC (rev 23607)
+++ labs/jbossesb/workspace/skeagh/container/osgi/src/main/java/org/jboss/esb/osgi/BundleResourceLocator.java 2008-10-28 12:31:07 UTC (rev 23608)
@@ -134,25 +134,55 @@
*/
public class BundleClassLoader extends ClassLoader
{
+ /**
+ * The OSGi Bundle associated with this ClassLoader.
+ */
private Bundle bundle;
+ /**
+ * Sole constructor.
+ *
+ * @param bundle The OSGi Bundle to associate with this ClassLoader.
+ * @param parent The ClassLoader that will be set as the parent of this ClassLoader.
+ */
public BundleClassLoader(final Bundle bundle, final ClassLoader parent)
{
super(parent);
this.bundle = bundle;
}
- protected Class<?> findClass(String name) throws ClassNotFoundException
+ /**
+ *
+ *
+ * @param name The class to find.
+ * @return Class The Class.
+ * @throws ClassNotFoundException If the class cannot be found.
+ */
+ @Override
+ protected final Class<?> findClass(final String name) throws ClassNotFoundException
{
return bundle.loadClass(name);
}
- protected URL findResource(String name)
+ /**
+ *
+ * @param name The class to find.
+ * @return URL The url to the resource.
+ */
+ @Override
+ protected final URL findResource(final String name)
{
return bundle.getResource(name);
}
- protected Enumeration<URL> findResources(String name) throws IOException
+ /**
+ *
+ * @param name The class to find.
+ * @return Enumeration The urls found.
+ * @throws IOException If the resources cannot be located.
+ */
+ @Override
+ protected final Enumeration<URL> findResources(final String name) throws IOException
{
return bundle.getResources(name);
}
More information about the jboss-svn-commits
mailing list