public class InstanceHelper extends Object
| Modifier and Type | Method and Description | 
|---|---|
| static org.apache.tomcat.InstanceManager | getClassLoaderInstanceManager(ClassLoader classLoader)Get the  instance manager for a giveninstance, stored within the. | 
| static org.apache.tomcat.InstanceManager | getServletInstanceManager(javax.servlet.ServletConfig servletConfig)Get the  instance manager for a given. | 
| static void | postConstruct(org.apache.tomcat.InstanceManager instanceManager,
             Object instance)Post-construct an instance of the specified  using
 the provided. | 
| static void | preDestroy(org.apache.tomcat.InstanceManager instanceManager,
          Object instance)Pre-destroy an instance  previously post-constructed
 with the provided. | 
| protected static void | setClassLoaderInstanceManager(ClassLoader classLoader,
                             org.apache.tomcat.InstanceManager instanceManager)Set the  instance manager for a giveninstance, stored within the. | 
public static org.apache.tomcat.InstanceManager getServletInstanceManager(javax.servlet.ServletConfig servletConfig)
InstanceManagerServletConfigServletContextSimpleInstanceManagerServletConfigClassLoaderservletConfig - public static org.apache.tomcat.InstanceManager getClassLoaderInstanceManager(ClassLoader classLoader)
InstanceManagerClassLoaderInstanceHelper MapSimpleInstanceManagerClassLoaderclassLoader - protected static void setClassLoaderInstanceManager(ClassLoader classLoader, org.apache.tomcat.InstanceManager instanceManager)
InstanceManagerClassLoaderInstanceHelper MapclassLoader - instanceManager - public static void postConstruct(org.apache.tomcat.InstanceManager instanceManager,
                                 Object instance)
                          throws IllegalAccessException,
                                 IllegalArgumentException,
                                 InvocationTargetException,
                                 NamingException
ObjectInstanceManagerinstanceManager - instance - IllegalAccessExceptionIllegalArgumentExceptionInvocationTargetExceptionNamingExceptionpublic static void preDestroy(org.apache.tomcat.InstanceManager instanceManager,
                              Object instance)
                       throws IllegalAccessException,
                              IllegalArgumentException,
                              InvocationTargetException
ObjectInstanceManagerinstanceManager - instance managerinstance - object instanceIllegalAccessExceptionIllegalArgumentExceptionInvocationTargetExceptionCopyright © 2000–2025 Apache Software Foundation. All rights reserved.