[jboss-cvs] JBossAS SVN: r102933 - projects/scanning/trunk/plugins/src/main/java/org/jboss/scanning/web/plugins.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed Mar 24 20:28:08 EDT 2010
Author: alesj
Date: 2010-03-24 20:28:08 -0400 (Wed, 24 Mar 2010)
New Revision: 102933
Modified:
projects/scanning/trunk/plugins/src/main/java/org/jboss/scanning/web/plugins/DefaultResourcesIndex.java
Log:
Prepare for path mapping.
Modified: projects/scanning/trunk/plugins/src/main/java/org/jboss/scanning/web/plugins/DefaultResourcesIndex.java
===================================================================
--- projects/scanning/trunk/plugins/src/main/java/org/jboss/scanning/web/plugins/DefaultResourcesIndex.java 2010-03-25 00:23:25 UTC (rev 102932)
+++ projects/scanning/trunk/plugins/src/main/java/org/jboss/scanning/web/plugins/DefaultResourcesIndex.java 2010-03-25 00:28:08 UTC (rev 102933)
@@ -50,34 +50,25 @@
public Set<Class<?>> getAnnotatedClasses(VirtualFile cpEntry, Class<? extends Annotation> annotationToLookFor)
{
+ if (cpEntry == null)
+ throw new IllegalArgumentException("Null cp entry");
if (annotationToLookFor == null)
throw new IllegalArgumentException("Null annotation class");
- URL url = toURL(cpEntry);
+ String path = cpEntry.getPathName();
+ // TODO
return Collections.emptySet();
}
public Set<Class<?>> getInheritedClasses(VirtualFile cpEntry, Class<?> superTypeToLookFor)
{
+ if (cpEntry == null)
+ throw new IllegalArgumentException("Null cp entry");
if (superTypeToLookFor == null)
throw new IllegalArgumentException("Null super type");
- URL url = toURL(cpEntry);
+ String path = cpEntry.getPathName();
+ // TODO
return Collections.emptySet();
}
-
- protected static URL toURL(VirtualFile file)
- {
- if (file == null)
- throw new IllegalArgumentException("Null url");
-
- try
- {
- return file.toURL();
- }
- catch (Exception e)
- {
- throw new RuntimeException(e);
- }
- }
}
More information about the jboss-cvs-commits
mailing list