/**
- * Name of associated context used with logging to associate messages with
+ * Name of associated context used with logging and JMX to associate with
* the right web application. Particularly useful for the clear references
* messages. Defaults to unknown but if standard Tomcat components are used
* it will be updated during initialisation from the resources.
/**
+ * Return the context name for this class loader.
+ */
+ public String getContextName() {
+
+ return (this.contextName);
+
+ }
+
+
+ /**
* Return the "delegate first" flag for this class loader.
*/
public boolean getDelegate() {
public String toString() {
StringBuilder sb = new StringBuilder("WebappClassLoader\r\n");
+ sb.append(" context: ");
+ sb.append(contextName);
+ sb.append("\r\n");
sb.append(" delegate: ");
sb.append(delegate);
sb.append("\r\n");
type="java.lang.String"
writeable="false"/>
+ <attribute name="contextName"
+ description="Name of the webapp context"
+ type="java.lang.String"
+ writeable="false"/>
+
<attribute name="delegate"
description="The 'follow standard delegation model' flag that will be
used to configure our ClassLoader"