org.jboss.shrinkwrap.api
Class Filters

java.lang.Object
  extended by org.jboss.shrinkwrap.api.Filters

public final class Filters
extends Object

Factory class for the creation of new Filter instances. Filter instances using this shorthand class will be created using the ClassLoader associated with the default Domain's Configuration.

Version:
$Revision: $
Author:
Aslak Knutsen

Method Summary
static Filter<ArchivePath> exclude(Class<?>... classes)
          Filter that excludes listed Class.
static Filter<ArchivePath> exclude(Package... packages)
          Filter that includes listed Package.
static Filter<ArchivePath> exclude(String regexp)
          Filter that exclude all ArchivePaths that match a given Regular Expression Pattern.
static Filter<ArchivePath> include(Class<?>... classes)
          Filter that includes listed Class.
static Filter<ArchivePath> include(Package... packages)
          Filter that excludes listed Package.
static Filter<ArchivePath> include(String regexp)
          Filer that include all ArchivePaths that match the given Regular Expression Pattern.
static Filter<ArchivePath> includeAll()
          Filter that includes all ArchivePaths.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

includeAll

public static Filter<ArchivePath> includeAll()
Filter that includes all ArchivePaths. Only meant to be used internally.

Returns:
A Filter that always return true

include

public static Filter<ArchivePath> include(String regexp)
Filer that include all ArchivePaths that match the given Regular Expression Pattern.

Parameters:
regexp - The expression to include
Returns:
A Regular Expression based include Filter

exclude

public static Filter<ArchivePath> exclude(String regexp)
Filter that exclude all ArchivePaths that match a given Regular Expression Pattern.

Parameters:
regexp - The expression to exclude
Returns:
A Regular Expression based exclude Filter

exclude

public static Filter<ArchivePath> exclude(Package... packages)
Filter that includes listed Package.

Parameters:
packages - To be included
Returns:

include

public static Filter<ArchivePath> include(Package... packages)
Filter that excludes listed Package.

Parameters:
packages - To be excluded
Returns:

include

public static Filter<ArchivePath> include(Class<?>... classes)
Filter that includes listed Class.

Parameters:
classes - To be included
Returns:

exclude

public static Filter<ArchivePath> exclude(Class<?>... classes)
Filter that excludes listed Class.

Parameters:
classes - To be excluded
Returns:


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