update JavaDoc
Project: http://git-wip-us.apache.org/repos/asf/tomee/repo Commit: http://git-wip-us.apache.org/repos/asf/tomee/commit/d815cee9 Tree: http://git-wip-us.apache.org/repos/asf/tomee/tree/d815cee9 Diff: http://git-wip-us.apache.org/repos/asf/tomee/diff/d815cee9 Branch: refs/heads/master Commit: d815cee954f0deb03a831920d5f5047712f4f1a1 Parents: c479023 Author: Hayri Cicek <ha...@kodnito.com> Authored: Fri Dec 7 22:23:00 2018 +0100 Committer: Hayri Cicek <ha...@kodnito.com> Committed: Fri Dec 7 22:23:00 2018 +0100 ---------------------------------------------------------------------- .../openejb/loader/BasicURLClassPath.java | 25 +++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/tomee/blob/d815cee9/container/openejb-loader/src/main/java/org/apache/openejb/loader/BasicURLClassPath.java ---------------------------------------------------------------------- diff --git a/container/openejb-loader/src/main/java/org/apache/openejb/loader/BasicURLClassPath.java b/container/openejb-loader/src/main/java/org/apache/openejb/loader/BasicURLClassPath.java index c78f223..b9bf5df 100644 --- a/container/openejb-loader/src/main/java/org/apache/openejb/loader/BasicURLClassPath.java +++ b/container/openejb-loader/src/main/java/org/apache/openejb/loader/BasicURLClassPath.java @@ -27,6 +27,11 @@ import java.security.PrivilegedAction; import java.util.Locale; public abstract class BasicURLClassPath implements ClassPath { + + /** + * + * @return ClassLoader + */ public static ClassLoader getContextClassLoader() { return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() { @Override @@ -39,6 +44,12 @@ public abstract class BasicURLClassPath implements ClassPath { private Field ucpField; private boolean ucpFieldErrorLogged; + /** + * + * @param jar URL + * @param loader URLClassLoader + * @throws Exception + */ protected void addJarToPath(final URL jar, final URLClassLoader loader) throws Exception { final Object cp = getURLClassPath(loader); if (cp == null && CustomizableURLClassLoader.class.isInstance(loader)) { @@ -69,8 +80,8 @@ public abstract class BasicURLClassPath implements ClassPath { /** * - * @param dir - * @param loader + * @param dir File + * @param loader URLClassLoader * @throws Exception */ protected synchronized void addJarsToPath(final File dir, final URLClassLoader loader) throws Exception { @@ -119,7 +130,7 @@ public abstract class BasicURLClassPath implements ClassPath { /** * - * @param loader + * @param loader URLClassLoader * @return Object * @throws Exception */ @@ -159,10 +170,18 @@ public abstract class BasicURLClassPath implements ClassPath { ClassLoader.registerAsParallelCapable(); } + /** + * + * @param parent ClassLoader + */ public CustomizableURLClassLoader(final ClassLoader parent) { super(new URL[0], parent); } + /** + * + * @param url URL + */ public void add(final URL url) { super.addURL(url); }