[jboss-cvs] JBossAS SVN: r80192 - projects/jboss-deployers/trunk/deployers-vfs/src/main/java/org/jboss/deployers/vfs/plugins/annotations.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed Oct 29 09:26:55 EDT 2008
Author: alesj
Date: 2008-10-29 09:26:55 -0400 (Wed, 29 Oct 2008)
New Revision: 80192
Modified:
projects/jboss-deployers/trunk/deployers-vfs/src/main/java/org/jboss/deployers/vfs/plugins/annotations/DeploymentUnitClassPath.java
Log:
Enable exclude filter setting.
Modified: projects/jboss-deployers/trunk/deployers-vfs/src/main/java/org/jboss/deployers/vfs/plugins/annotations/DeploymentUnitClassPath.java
===================================================================
--- projects/jboss-deployers/trunk/deployers-vfs/src/main/java/org/jboss/deployers/vfs/plugins/annotations/DeploymentUnitClassPath.java 2008-10-29 13:20:04 UTC (rev 80191)
+++ projects/jboss-deployers/trunk/deployers-vfs/src/main/java/org/jboss/deployers/vfs/plugins/annotations/DeploymentUnitClassPath.java 2008-10-29 13:26:55 UTC (rev 80192)
@@ -44,6 +44,8 @@
{
private VFSDeploymentUnit unit;
private Map<String, VirtualFile> cache;
+ /** By default exclude jdk classes */
+ private ClassFilter excludeFilter = ClassFilter.JAVA_ONLY;
public DeploymentUnitClassPath(VFSDeploymentUnit unit)
{
@@ -54,6 +56,16 @@
}
/**
+ * Set exclude filter.
+ *
+ * @param excludeFilter the exclude filter
+ */
+ public void setExcludeFilter(ClassFilter excludeFilter)
+ {
+ this.excludeFilter = excludeFilter;
+ }
+
+ /**
* Find file.
*
* @param className the classname we're looking for
@@ -62,8 +74,7 @@
*/
protected VirtualFile findFile(String className) throws IOException
{
- // ignore jdk classes
- if (ClassFilter.JAVA_ONLY.matchesClassName(className))
+ if (excludeFilter != null && excludeFilter.matchesClassName(className))
return null;
VirtualFile file = cache.get(className);
More information about the jboss-cvs-commits
mailing list