org.apache.catalina.WebResourceRoot ). This class
loader supports detection of modified Java classes, which can be used to implement auto-reload support.
This class loader is configured via the Resources children of its Context prior to calling start(). When
a new class is required, these Resources will be consulted first to locate the class. If it is not present, the
system class loader will be used instead.
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private WebappClassLoaderBase | classLoader
The class loader being managed by this Loader component. |
| private String | classpath
Classpath set in the loader. |
| private Context | context
The Context with which this Loader has been associated. |
| private boolean | delegate
The "follow standard delegation model" flag that will be used to configure our ClassLoader. |
| private String | jakartaConverter
The profile name which will be used by the converter, or null if not used. |
| private String | loaderClass
The Java class name of the ClassLoader implementation to be used. |
| private static final Log | |
| protected static final StringManager | sm
The string manager for this package.
|
| protected final PropertyChangeSupport | support
The property change support for this component. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addPropertyChangeListener(PropertyChangeListener
The listener to add listener)Implements org. Add a property change listener to this component. |
| public void | backgroundProcess()
Implements org. Execute a periodic task, such as reloading, etc. This method will be invoked inside the classloading context of this container. |
| private boolean | |
| private WebappClassLoaderBase | |
| public ClassLoader | getClassLoader()
Implements org. Return the Java class loader to be used by this Container. |
| public String | Returns: The classpathClasspath, as set in org.apache.catalina.jsp_classpath context property |
| public Context | |
| public boolean | getDelegate()
Implements org. Return the "follow standard delegation model" flag used to configure our ClassLoader. |
| protected String | getDomainInternal()
Implements abstract org. Method implemented by sub-classes to identify the domain in which MBeans should be registered. |
| public String | Returns: a non null String if the loader will attempt to use the Jakarta converter. The String is the name of the profile used for conversion.
|
| public String | |
| public String[] | |
| public String | |
| protected String | getObjectNameKeyProperties()
Implements abstract org. Allow sub-classes to specify the key properties component of the
|
| public boolean | modified()
Implements org. Has the internal repository associated with this Loader been modified, such that the loaded classes should be reloaded? |
| public void | removePropertyChangeListener(PropertyChangeListener
The listener to remove listener)Implements org. Remove a property change listener from this component. |
| private void | |
| public void | setContext(Context
The associated Context context)Implements org. Set the Context with which this Loader has been associated. |
| public void | setDelegate(boolean
The new flag delegate)Implements org. Set the "follow standard delegation model" flag used to configure our ClassLoader. |
| public void | setJakartaConverter(String
The profile name which will be used by the converter Any invalid profile value will
default to the TOMCAT profile, which converts all packages used by Tomcat. jakartaConverter)Set the Jakarta converter. |
| public void | |
| public void | setLoaderInstance(WebappClassLoaderBase
The new ClassLoader instance to use loaderInstance)Set the ClassLoader instance, without relying on reflection This method will also invoke
|
| private void | |
| protected void | startInternal()
Implements abstract org. Start associated |
| protected void | stopInternal()
Implements abstract org. Stop associated |
| public String |
| classLoader | back to summary |
|---|---|
| private WebappClassLoaderBase classLoader The class loader being managed by this Loader component. | |
| classpath | back to summary |
|---|---|
| private String classpath Classpath set in the loader. | |
| context | back to summary |
|---|---|
| private Context context The Context with which this Loader has been associated. | |
| delegate | back to summary |
|---|---|
| private boolean delegate The "follow standard delegation model" flag that will be used to configure our ClassLoader. | |
| jakartaConverter | back to summary |
|---|---|
| private String jakartaConverter The profile name which will be used by the converter, or null if not used. Any invalid profile value will default to the TOMCAT profile, which converts all packages used by Tomcat. | |
| loaderClass | back to summary |
|---|---|
| private String loaderClass The Java class name of the ClassLoader implementation to be used. This class should extend WebappClassLoaderBase, otherwise, a different loader implementation must be used. | |
| log | back to summary |
|---|---|
| private static final Log log | |
| sm | back to summary |
|---|---|
| protected static final StringManager sm Hides org. The string manager for this package. | |
| support | back to summary |
|---|---|
| protected final PropertyChangeSupport support The property change support for this component. | |
| WebappLoader | back to summary |
|---|---|
| public WebappLoader() | |
| addPropertyChangeListener | back to summary |
|---|---|
| public void addPropertyChangeListener(PropertyChangeListener listener) Implements org. Add a property change listener to this component.
| |
| backgroundProcess | back to summary |
|---|---|
| public void backgroundProcess() Implements org. Execute a periodic task, such as reloading, etc. This method will be invoked inside the classloading context of this container. Unexpected throwables will be caught and logged.
| |
| buildClassPath | back to summary |
|---|---|
| private boolean buildClassPath(StringBuilder classpath, ClassLoader loader) | |
| createClassLoader | back to summary |
|---|---|
| private WebappClassLoaderBase createClassLoader() throws Exception Create associated classLoader. | |
| getClassLoader | back to summary |
|---|---|
| public ClassLoader getClassLoader() Implements org. Return the Java class loader to be used by this Container.
| |
| getClasspath | back to summary |
|---|---|
| public String getClasspath() Classpath, as set in org.apache.catalina.jsp_classpath context property
| |
| getContext | back to summary |
|---|---|
| public Context getContext() Implements org.
| |
| getDelegate | back to summary |
|---|---|
| public boolean getDelegate() Implements org. Return the "follow standard delegation model" flag used to configure our ClassLoader.
| |
| getDomainInternal | back to summary |
|---|---|
| protected String getDomainInternal() Implements abstract org. Doc from org. Method implemented by sub-classes to identify the domain in which MBeans should be registered. | |
| getJakartaConverter | back to summary |
|---|---|
public String getJakartaConverter()
| |
| getLoaderClass | back to summary |
|---|---|
public String getLoaderClass()
| |
| getLoaderRepositories | back to summary |
|---|---|
| public String[] getLoaderRepositories() | |
| getLoaderRepositoriesString | back to summary |
|---|---|
| public String getLoaderRepositoriesString() | |
| getObjectNameKeyProperties | back to summary |
|---|---|
| protected String getObjectNameKeyProperties() Implements abstract org. Doc from org. Allow sub-classes to specify the key properties component of the
| |
| modified | back to summary |
|---|---|
| public boolean modified() Implements org. Has the internal repository associated with this Loader been modified, such that the loaded classes should be reloaded?
| |
| removePropertyChangeListener | back to summary |
|---|---|
| public void removePropertyChangeListener(PropertyChangeListener listener) Implements org. Remove a property change listener from this component.
| |
| setClassPath | back to summary |
|---|---|
| private void setClassPath() Set the appropriate context attribute for our class path. This is required only because Jasper depends on it. | |
| setContext | back to summary |
|---|---|
| public void setContext(Context context) Implements org. Doc from org. Set the Context with which this Loader has been associated. | |
| setDelegate | back to summary |
|---|---|
| public void setDelegate(boolean delegate) Implements org. Set the "follow standard delegation model" flag used to configure our ClassLoader.
| |
| setJakartaConverter | back to summary |
|---|---|
| public void setJakartaConverter(String jakartaConverter) Set the Jakarta converter.
| |
| setLoaderClass | back to summary |
|---|---|
| public void setLoaderClass(String loaderClass) Set the ClassLoader class name.
| |
| setLoaderInstance | back to summary |
|---|---|
| public void setLoaderInstance(WebappClassLoaderBase loaderInstance) Set the ClassLoader instance, without relying on reflection This method will also invoke
| |
| setPermissions | back to summary |
|---|---|
| private void setPermissions() Configure associated class loader permissions. | |
| startInternal | back to summary |
|---|---|
| protected void startInternal() throws LifecycleException Implements abstract org. Start associated
| |
| stopInternal | back to summary |
|---|---|
| protected void stopInternal() throws LifecycleException Implements abstract org. Stop associated
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Return a String representation of this component.
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static void |
| MigrationUtil | back to summary |
|---|---|
| private MigrationUtil() | |
| addJakartaEETransformer | back to summary |
|---|---|
| public static void addJakartaEETransformer(WebappClassLoaderBase webappClassLoader, String profileName) | |