Class DefaultContextQuery

  • All Implemented Interfaces:
    ContextQuery

    public class DefaultContextQuery
    extends java.lang.Object
    implements ContextQuery
    • Method Detail

      • notEmpty

        public ContextQuery notEmpty()
        Description copied from interface: ContextQuery
        Extends query by adding filter for context configuration. New filter passes only those contexts that contain any configuration.
        Specified by:
        notEmpty in interface ContextQuery
        Returns:
        extended query
      • matchesAny

        public ContextQuery matchesAny​(java.lang.String name,
                                       java.util.Collection<java.lang.String> values)
        Description copied from interface: ContextQuery
        Extends query by adding filter for specified attribute. New filter passes only those contexts that contains an attribute with specified name and value is one of provided.
        Specified by:
        matchesAny in interface ContextQuery
        Parameters:
        name - name of attribute to match
        values - collection of possible values
        Returns:
        extended query
      • execute

        public java.util.Collection<Context> execute()
        Description copied from interface: ContextQuery
        Executes query on cached contexts
        Specified by:
        execute in interface ContextQuery
        Returns:
        collection of contexts that matches current query or null if no contexts are available in cache