From ae703b89a71961164410a04987ee10e015c60eb2 Mon Sep 17 00:00:00 2001 From: markt Date: Thu, 23 Jun 2011 11:44:39 +0000 Subject: [PATCH] Move the statics out of the "instance variable" section git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1138839 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/catalina/startup/ContextConfig.java | 100 +++++++++++---------- 1 file changed, 52 insertions(+), 48 deletions(-) diff --git a/java/org/apache/catalina/startup/ContextConfig.java b/java/org/apache/catalina/startup/ContextConfig.java index 4f3a10450..d95995202 100644 --- a/java/org/apache/catalina/startup/ContextConfig.java +++ b/java/org/apache/catalina/startup/ContextConfig.java @@ -114,14 +114,23 @@ public class ContextConfig private static final String SCI_LOCATION = "META-INF/services/javax.servlet.ServletContainerInitializer"; - // ----------------------------------------------------- Instance Variables - /** - * Custom mappings of login methods to authenticators + * The string resources for this package. */ - protected Map customAuthenticators; + protected static final StringManager sm = + StringManager.getManager(Constants.Package); + + + protected static final LoginConfig DUMMY_LOGIN_CONFIG = + new LoginConfig("NONE", null, null, null); + /** + * The Digester we will use to process web application + * context files. + */ + protected static Digester contextDigester = null; + /** * The set of Authenticators that we know how to configure. The key is @@ -132,6 +141,45 @@ public class ContextConfig /** + * The Digesters available to process web deployment descriptor + * files. + */ + protected static Digester[] webDigesters = new Digester[4]; + + + /** + * The Digesters available to process web fragment deployment + * descriptor files. + */ + protected static Digester[] webFragmentDigesters = new Digester[4]; + + + /** + * The Rules used to parse the web.xml + */ + protected static WebRuleSet webRuleSet = new WebRuleSet(false); + + + /** + * The Rules used to parse the web-fragment.xml + */ + protected static WebRuleSet webFragmentRuleSet = new WebRuleSet(true); + + + /** + * Deployment count. + */ + protected static long deploymentCount = 0L; + + + // ----------------------------------------------------- Instance Variables + /** + * Custom mappings of login methods to authenticators + */ + protected Map customAuthenticators; + + + /** * The Context we are associated with. */ protected Context context = null; @@ -175,20 +223,6 @@ public class ContextConfig new HashMap, Set>(); /** - * The string resources for this package. - */ - protected static final StringManager sm = - StringManager.getManager(Constants.Package); - - - /** - * The Digester we will use to process web application - * context files. - */ - protected static Digester contextDigester = null; - - - /** * The Digester we will use to process web application * deployment descriptor files. */ @@ -201,37 +235,7 @@ public class ContextConfig protected Digester webFragmentDigester = null; - protected static Digester[] webDigesters = new Digester[4]; - - /** - * The Digesters available to process web fragment - * deployment descriptor files. - */ - protected static Digester[] webFragmentDigesters = new Digester[4]; - - /** - * The Rules used to parse the web.xml - */ - protected static WebRuleSet webRuleSet = new WebRuleSet(false); - - /** - * The Rules used to parse the web-fragment.xml - */ - protected static WebRuleSet webFragmentRuleSet = new WebRuleSet(true); - - /** - * Deployment count. - */ - protected static long deploymentCount = 0L; - - - protected static final LoginConfig DUMMY_LOGIN_CONFIG = - new LoginConfig("NONE", null, null, null); - - // ------------------------------------------------------------- Properties - - /** * Return the location of the default deployment descriptor */ -- 2.11.0