Class PackageBasedQueryGroup

  • All Implemented Interfaces:
    IQueryGroup

    public class PackageBasedQueryGroup
    extends BaseQueryGroup
    Package based BaseQueryGroup implementation. It handles patterns as a group within the same package.
    • Constructor Detail

      • PackageBasedQueryGroup

        public PackageBasedQueryGroup​(java.lang.String packageName)
        Creates a query group with specifications of a given package from the QuerySpecificationRegistry. Only query specifications with the exact package fully qualified name are included.
        Parameters:
        packageName - that contains the specifications
      • PackageBasedQueryGroup

        public PackageBasedQueryGroup​(java.lang.String packageName,
                                      boolean includeSubPackages)
        Creates a query group with specifications of a given package from the QuerySpecificationRegistry.
        Parameters:
        packageName - that contain the specifications
        includeSubPackages - if true all query specifications with package names starting with the given package are included
    • Method Detail

      • getPackageName

        public java.lang.String getPackageName()
      • isIncludeSubPackages

        public boolean isIncludeSubPackages()
      • refresh

        public void refresh()
        Refreshes the pattern group from the query specification registry based on the parameters used during the initialization.