MCPcopy Index your code
hub / github.com/apache/tomcat / SelectorContext

Class SelectorContext

java/org/apache/naming/SelectorContext.java:35–427  ·  view source on GitHub ↗

Catalina JNDI Context implementation.

Source from the content-addressed store, hash-verified

33 * Catalina JNDI Context implementation.
34 */
35public class SelectorContext implements Context {
36
37
38 // -------------------------------------------------------------- Constants
39
40
41 /**
42 * Namespace URL.
43 */
44 public static final String prefix = "java:";
45
46
47 /**
48 * Namespace URL length.
49 */
50 public static final int prefixLength = prefix.length();
51
52
53 /**
54 * Initial context prefix.
55 */
56 public static final String IC_PREFIX = "IC_";
57
58
59 private static final Log log = LogFactory.getLog(SelectorContext.class);
60
61 // ----------------------------------------------------------- Constructors
62
63
64 /**
65 * Builds a Catalina selector context using the given environment.
66 *
67 * @param env The environment
68 */
69 public SelectorContext(Hashtable<String,Object> env) {
70 this.env = env;
71 this.initialContext = false;
72 }
73
74
75 /**
76 * Builds a Catalina selector context using the given environment.
77 *
78 * @param env The environment
79 * @param initialContext <code>true</code> if this is the main initial context
80 */
81 public SelectorContext(Hashtable<String,Object> env, boolean initialContext) {
82 this.env = env;
83 this.initialContext = initialContext;
84 }
85
86
87 // ----------------------------------------------------- Instance Variables
88
89
90 /**
91 * Environment.
92 */

Callers

nothing calls this directly

Calls 3

getLogMethod · 0.95
getManagerMethod · 0.95
lengthMethod · 0.80

Tested by

no test coverage detected