com.atlassian.jira.util
Class JiraKeyUtilsAccesor

java.lang.Object
  extended by com.atlassian.jira.util.JiraKeyUtilsAccesor

public class JiraKeyUtilsAccesor
extends Object


Nested Class Summary
static class JiraKeyUtilsAccesor.MockKeyMatcher
           
static class JiraKeyUtilsAccesor.MockProductionKeyMatcher
           
 
Constructor Summary
JiraKeyUtilsAccesor()
           
 
Method Summary
static JiraKeyUtils.KeyMatcher getCurrentKeyMatcher()
           
static void refreshKeyMatcherOnUtilClass()
          This is a public static method to be called by test classes outside of this package.
static void resetKeyMatcher(String regex)
           
static void setKeyMatcher(JiraKeyUtils.KeyMatcher keyMatcher)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JiraKeyUtilsAccesor

public JiraKeyUtilsAccesor()
Method Detail

refreshKeyMatcherOnUtilClass

public static void refreshKeyMatcherOnUtilClass()
This is a public static method to be called by test classes outside of this package.

It makes JiraKeyUtils recreate it's cached DefaultKeyMatcher class in order to pick up any changes to the application properties (for example, the project key regex)


getCurrentKeyMatcher

public static JiraKeyUtils.KeyMatcher getCurrentKeyMatcher()

setKeyMatcher

public static void setKeyMatcher(JiraKeyUtils.KeyMatcher keyMatcher)

resetKeyMatcher

public static void resetKeyMatcher(String regex)


Copyright © 2002-2014 Atlassian. All Rights Reserved.