org.jboss.classloader.spi.filter
Interface ClassFilter

All Known Implementing Classes:
CombiningClassFilter, EverythingClassFilter, JavaOnlyClassFilter, NothingButJavaClassFilter, NothingClassFilter, PackageClassFilter, PatternClassFilter, RecursivePackageClassFilter

public interface ClassFilter

ClassFilter.

Version:
$Revision: 1.1 $
Author:
Adrian Brock

Field Summary
static ClassFilter EVERYTHING
          Match evertything
static ClassFilter JAVA_ONLY
          Java Only
static ClassFilter NOTHING
          Match nothing
static ClassFilter NOTHING_BUT_JAVA
          Match nothing
 
Method Summary
 boolean matchesClassName(String className)
          Whether the class name matches the filter
 boolean matchesPackageName(String packageName)
          Whether the package name matches the filter
 boolean matchesResourcePath(String resourcePath)
          Whether the resource name matches the filter
 

Field Detail

EVERYTHING

static final ClassFilter EVERYTHING
Match evertything


NOTHING

static final ClassFilter NOTHING
Match nothing


NOTHING_BUT_JAVA

static final ClassFilter NOTHING_BUT_JAVA
Match nothing


JAVA_ONLY

static final ClassFilter JAVA_ONLY
Java Only

Method Detail

matchesClassName

boolean matchesClassName(String className)
Whether the class name matches the filter

Parameters:
className - the class name
Returns:
true when it matches the filter

matchesResourcePath

boolean matchesResourcePath(String resourcePath)
Whether the resource name matches the filter

Parameters:
resourcePath - the resource path
Returns:
true when it matches the filter

matchesPackageName

boolean matchesPackageName(String packageName)
Whether the package name matches the filter

Parameters:
packageName - the package path
Returns:
true when it matches the filter


Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.