[hibernate-commits] Hibernate SVN: r14266 - entitymanager/trunk/src/java/org/hibernate/ejb/packaging.
hibernate-commits at lists.jboss.org
hibernate-commits at lists.jboss.org
Thu Jan 3 09:41:32 EST 2008
Author: epbernard
Date: 2008-01-03 09:41:32 -0500 (Thu, 03 Jan 2008)
New Revision: 14266
Modified:
entitymanager/trunk/src/java/org/hibernate/ejb/packaging/JarVisitor.java
Log:
comments on method usage
Modified: entitymanager/trunk/src/java/org/hibernate/ejb/packaging/JarVisitor.java
===================================================================
--- entitymanager/trunk/src/java/org/hibernate/ejb/packaging/JarVisitor.java 2007-12-24 16:01:02 UTC (rev 14265)
+++ entitymanager/trunk/src/java/org/hibernate/ejb/packaging/JarVisitor.java 2008-01-03 14:41:32 UTC (rev 14266)
@@ -40,6 +40,7 @@
/**
* Get the JAR URL of the JAR containing the given entry
+ * Method used in a non managed environment
*
* @param url URL pointing to the known file in the JAR
* @param entry file known to be in the JAR
@@ -93,6 +94,23 @@
}
/**
+ * Get a JarVisitor to the jar <code>jarPath</code> applying the given filters
+ *
+ * Method used in a non-managed environment
+ *
+ * @throws IllegalArgumentException if the jarPath is incorrect
+ */
+ public static final JarVisitor getVisitor(String jarPath, Filter[] filters) throws IllegalArgumentException {
+ File file = new File( jarPath );
+ if ( file.isFile() ) {
+ return new InputStreamZippedJarVisitor( jarPath, filters );
+ }
+ else {
+ return new ExplodedJarVisitor( jarPath, filters );
+ }
+ }
+
+ /**
* Build a JarVisitor on the given JAR URL applying the given filters
*
* @throws IllegalArgumentException if the URL is malformed
@@ -180,21 +198,6 @@
initFilters( filters );
}
- /**
- * Get a JarVisitor to the jar <code>jarPath</code> applying the given filters
- *
- * @throws IllegalArgumentException if the jarPath is incorrect
- */
- public static final JarVisitor getVisitor(String jarPath, Filter[] filters) throws IllegalArgumentException {
- File file = new File( jarPath );
- if ( file.isFile() ) {
- return new InputStreamZippedJarVisitor( jarPath, filters );
- }
- else {
- return new ExplodedJarVisitor( jarPath, filters );
- }
- }
-
private JarVisitor(URL url) {
jarUrl = url;
unqualify();
More information about the hibernate-commits
mailing list