contextBindings.noContextBoundToThread=No naming context bound to this thread
contextBindings.noContextBoundToCL=No naming context bound to this class loader
selectorContext.noJavaUrl=This context must be accessed through a java: URL
+selectorContext.methodUsingName=Call to method ''{0}'' with a Name of ''{1}''
+selectorContext.methodUsingString=Call to method ''{0}'' with a String of ''{1}''
namingContext.contextExpected=Name is not bound to a Context
namingContext.failResolvingReference=Unexpected exception resolving reference
namingContext.nameNotBound=Name {0} is not bound in this Context
public static final String IC_PREFIX = "IC_";
+ private static org.apache.juli.logging.Log log =
+ org.apache.juli.logging.LogFactory.getLog(SelectorContext.class);
+
// ----------------------------------------------------------- Constructors
*/
public Object lookup(Name name)
throws NamingException {
+
+ if (log.isDebugEnabled()) {
+ log.debug(sm.getString("selectorContext.methodUsingName", "lookup",
+ name));
+ }
+
// Strip the URL header
// Find the appropriate NamingContext according to the current bindings
// Execute the lookup on that context
*/
public Object lookup(String name)
throws NamingException {
+
+ if (log.isDebugEnabled()) {
+ log.debug(sm.getString("selectorContext.methodUsingString", "lookup",
+ name));
+ }
+
// Strip the URL header
// Find the appropriate NamingContext according to the current bindings
// Execute the lookup on that context
*/
public NamingEnumeration<NameClassPair> list(Name name)
throws NamingException {
+
+ if (log.isDebugEnabled()) {
+ log.debug(sm.getString("selectorContext.methodUsingName", "list",
+ name));
+ }
+
return getBoundContext().list(parseName(name));
}
*/
public NamingEnumeration<NameClassPair> list(String name)
throws NamingException {
+
+ if (log.isDebugEnabled()) {
+ log.debug(sm.getString("selectorContext.methodUsingString", "list",
+ name));
+ }
+
return getBoundContext().list(parseName(name));
}
*/
public NamingEnumeration<Binding> listBindings(Name name)
throws NamingException {
+
+ if (log.isDebugEnabled()) {
+ log.debug(sm.getString("selectorContext.methodUsingName",
+ "listBindings", name));
+ }
+
return getBoundContext().listBindings(parseName(name));
}
*/
public NamingEnumeration<Binding> listBindings(String name)
throws NamingException {
+
+ if (log.isDebugEnabled()) {
+ log.debug(sm.getString("selectorContext.methodUsingString",
+ "listBindings", name));
+ }
+
return getBoundContext().listBindings(parseName(name));
}
*/
public Object lookupLink(Name name)
throws NamingException {
+
+ if (log.isDebugEnabled()) {
+ log.debug(sm.getString("selectorContext.methodUsingName",
+ "lookupLink", name));
+ }
+
return getBoundContext().lookupLink(parseName(name));
}
*/
public Object lookupLink(String name)
throws NamingException {
+
+ if (log.isDebugEnabled()) {
+ log.debug(sm.getString("selectorContext.methodUsingString",
+ "lookupLink", name));
+ }
+
return getBoundContext().lookupLink(parseName(name));
}