public class PackageBasedQueryGroup extends BaseQueryGroup
BaseQueryGroup
implementation. It handles patterns as a group within the same package.Constructor and Description |
---|
PackageBasedQueryGroup(java.lang.String packageName)
Creates a query group with specifications of a given package from the
QuerySpecificationRegistry . |
PackageBasedQueryGroup(java.lang.String packageName,
boolean includeSubPackages)
Creates a query group with specifications of a given package from the
QuerySpecificationRegistry . |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getPackageName() |
java.util.Set<IQuerySpecification<?>> |
getQuerySpecifications()
Deprecated.
Use
getSpecifications() instead |
java.util.Set<IQuerySpecification<?>> |
getSpecifications()
Returns the currently assigned
IQuerySpecification s. |
boolean |
isIncludeSubPackages() |
void |
refresh()
Refreshes the pattern group from the query specification registry based on the parameters used during the
initialization.
|
prepare, prepare
public PackageBasedQueryGroup(java.lang.String packageName)
QuerySpecificationRegistry
. Only
query specifications with the exact package fully qualified name are included.packageName
- that contains the specificationspublic PackageBasedQueryGroup(java.lang.String packageName, boolean includeSubPackages)
QuerySpecificationRegistry
.packageName
- that contain the specificationsincludeSubPackages
- if true all query specifications with package names starting with the given package are includedpublic java.util.Set<IQuerySpecification<?>> getSpecifications()
IQueryGroup
IQuerySpecification
s.public java.lang.String getPackageName()
public java.util.Set<IQuerySpecification<?>> getQuerySpecifications()
getSpecifications()
insteadpublic boolean isIncludeSubPackages()
public void refresh()