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<?>> |
getSpecifications()
Returns the currently assigned
IQuerySpecifications. |
boolean |
isIncludeSubPackages() |
void |
refresh()
Refreshes the pattern group from the query specification registry based on the parameters used during the
initialization.
|
prepare, preparepublic 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()
IQueryGroupIQuerySpecifications.public java.lang.String getPackageName()
public boolean isIncludeSubPackages()
public void refresh()