Class MultiClauseDecoratorContextFactory.Factory

java.lang.Object
com.atlassian.jira.jql.context.MultiClauseDecoratorContextFactory.Factory
Enclosing class:
MultiClauseDecoratorContextFactory

public static class MultiClauseDecoratorContextFactory.Factory extends Object
Factory to create a MultiClauseDecoratorContextFactory given a ClauseContextFactory to wrap.
Since:
4.0
  • Constructor Details

  • Method Details

    • create

      @Nonnull public ClauseContextFactory create(@Nonnull ClauseContextFactory delegate)
      Same as calling create(delegate, true).
      Parameters:
      delegate - the ClauseContextFactory to wrap.
      Returns:
      the wrapped clause context factory.
    • create

      @Nonnull public ClauseContextFactory create(@Nonnull ClauseContextFactory delegate, boolean validating)
      Wrap the passed ClauseContextFactory in a MultiClauseDecoratorContextFactory. When validating is set to true, the returned ClauseContextFactory will also perform a validation step on the passed clause when generating the clause context.
      Parameters:
      delegate - the factory to wrap. Cannot be null.
      validating - true if the returned factory should perform a validation step, or false otherwise.
      Returns:
      the wrapped clause context factory.