MCPcopy Create free account
hub / github.com/apache/tomcat / getRegistry

Method getRegistry

java/org/apache/tomcat/util/modeler/Registry.java:116–125  ·  view source on GitHub ↗

Factory method to create (if necessary) and return our Registry instance. @param key Unused @param guard Prevent access to the registry by untrusted components @return the registry @since 1.1

(Object key, Object guard)

Source from the content-addressed store, hash-verified

114 * @since 1.1
115 */
116 public static synchronized Registry getRegistry(Object key, Object guard) {
117 if (registry == null) {
118 registry = new Registry();
119 registry.guard = guard;
120 }
121 if (registry.guard != null && registry.guard != guard) {
122 return null;
123 }
124 return registry;
125 }
126
127
128 /**

Callers 15

testBug54170Method · 0.95
executeMethod · 0.95
createDigesterMethod · 0.95
executeMethod · 0.95
initMethod · 0.95
registerJmxMethod · 0.95
unregisterJmxMethod · 0.95
destroyMethod · 0.95
initMethod · 0.95
destroyMethod · 0.95
registerMethod · 0.95

Calls 1

getStringMethod · 0.65

Tested by 2

testBug54170Method · 0.76