public class ClassPathSearchFilter extends Object
| Constructor and Description |
|---|
ClassPathSearchFilter() |
| Modifier and Type | Method and Description |
|---|---|
void |
addDefaultExcludePackages()
Add some packages which by default will be excluded from a search.
|
void |
clearExcludePackages()
Clear all entries from the exclude packages list.
|
protected boolean |
containedIn(HashSet<String> set,
String match)
Helper method to determine is a match is contained in the set.
|
void |
excludeJar(String jarName)
Add a jar to explicitly exclude in the search.
|
void |
excludePackage(String pckgName)
Add a package to explicitly exclude in the search.
|
Set<String> |
getIncludePackages()
Return the explicit packages that should be searched.
|
void |
includeJar(String jarName)
Add a jar to explicitly include in the search.
|
void |
includePackage(String pckgName)
Add a package to explicitly include in the search.
|
boolean |
isSearchJar(String jarName)
Return true if the jar should be included in the search.
|
boolean |
isSearchPackage(String packageName)
Return true if the package should be included in the search.
|
void |
setDefaultJarMatch(boolean defaultJarMatch)
Set the default for jar matching when a jar is neither explicitly
included or excluded.
|
void |
setDefaultPackageMatch(boolean defaultPackageMatch)
Set the default for package matching when a package is neither explicitly
included or excluded.
|
void |
setEbeanJarPrefix(String ebeanJarPrefix)
Set the name of the ebean jar file.
|
public void setEbeanJarPrefix(String ebeanJarPrefix)
You only need to set this if the ebean jar file name starts with something other than ebean.
public Set<String> getIncludePackages()
public void addDefaultExcludePackages()
This includes java, javax, etc.
This is not used when the includePackages is set, but can speed a search when includePackages has not been set.
public void clearExcludePackages()
This includes the entries added by addDefaultExcludePackages() which is done on construction.
public void setDefaultJarMatch(boolean defaultJarMatch)
public void setDefaultPackageMatch(boolean defaultPackageMatch)
public void includePackage(String pckgName)
public void excludePackage(String pckgName)
public void excludeJar(String jarName)
public void includeJar(String jarName)
public boolean isSearchPackage(String packageName)
public boolean isSearchJar(String jarName)
Copyright © 2014. All Rights Reserved.