public class PackageFilter extends Object
This class represents a package filter specified by the com.ocpsoft.pretty.SCAN_PACKAGES initialization
parameter.
| Constructor and Description |
|---|
PackageFilter(String config)
Creates a new
PackageFilter |
| Modifier and Type | Method and Description |
|---|---|
int |
getNumberOfBasePackages()
Returns the total number of base packages that this instance is holding.
|
boolean |
isAllowedPackage(String packageName)
Checks whether the supplied packages matches the filter.
|
String |
toString() |
public PackageFilter(String config)
PackageFilterconfig - Comma-separated list of packages (null safe)public boolean isAllowedPackage(String packageName)
Checks whether the supplied packages matches the filter.
The method returns true if one of the following checks succeed:
packageName - A package nametrue if the filter matchespublic int getNumberOfBasePackages()
Copyright © 2018 OCPsoft. All rights reserved.