Package org.apache.catalina.core
Class StandardWrapper
java.lang.Object
org.apache.catalina.util.LifecycleBase
org.apache.catalina.util.LifecycleMBeanBase
org.apache.catalina.core.ContainerBase
org.apache.catalina.core.StandardWrapper
- All Implemented Interfaces:
- ServletConfig,- MBeanRegistration,- NotificationBroadcaster,- NotificationEmitter,- Container,- JmxEnabled,- Lifecycle,- Wrapper
- Direct Known Subclasses:
- Tomcat.ExistingStandardWrapper
public class StandardWrapper
extends ContainerBase
implements ServletConfig, Wrapper, NotificationEmitter
Standard implementation of the Wrapper interface that represents an individual servlet definition. No child
 Containers are allowed, and the parent Container must be a Context.
- Author:
- Craig R. McClanahan, Remy Maucherat
- 
Nested Class SummaryNested classes/interfaces inherited from class org.apache.catalina.core.ContainerBaseContainerBase.ContainerBackgroundProcessor, ContainerBase.ContainerBackgroundProcessorMonitor, ContainerBase.PrivilegedAddChildNested classes/interfaces inherited from interface org.apache.catalina.LifecycleLifecycle.SingleUse
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected booleanAsync supportprotected longThe date and time at which this servlet will become available (in milliseconds since the epoch), or zero if the servlet is available.protected final NotificationBroadcasterSupportThe broadcaster that sends j2ee notifications.protected intprotected static Class<?>[]Static class array used when the SecurityManager is turned on andServlet.initis invoked.protected final AtomicIntegerThe count of allocations that are currently active.protected static final String[]protected booleanEnabledprotected final StandardWrapperFacadeThe facade associated with this wrapper.protected ServletThe (single) possibly uninitialized instance of this servlet.protected booleanFlag that indicates if this instance has been initializedprotected booleanTrue if this StandardWrapper is for the JspServletprotected ObjectNameThe ObjectName of the JSP monitoring mbeanprotected intThe load-on-startup order value (negative value means load on first call) for this servlet.protected longMappings associated with the wrapper.protected MultipartConfigElementMultipart configprotected MBeanNotificationInfo[]The initialization parameters for this servlet, keyed by parameter name.The security role references for this servlet, keyed by role name used in the servlet.protected StringThe run-as identity for this servlet.protected longThe notification sequence number.protected StringThe fully qualified servlet class name for this servlet.protected booleanShould we swallow System.outprotected org.apache.catalina.core.StandardWrapperValveprotected longWait time for servlet unload in ms.protected booleanAre we unloading our servlet instance at the moment?Fields inherited from class org.apache.catalina.core.ContainerBaseaccessLog, backgroundProcessorDelay, backgroundProcessorFuture, children, cluster, listeners, logger, logName, monitorFuture, name, parent, parentClassLoader, pipeline, sm, startChildren, startStopExecutor, supportFields inherited from interface org.apache.catalina.ContainerADD_CHILD_EVENT, ADD_VALVE_EVENT, REMOVE_CHILD_EVENT, REMOVE_VALVE_EVENTFields inherited from interface org.apache.catalina.LifecycleAFTER_DESTROY_EVENT, AFTER_INIT_EVENT, AFTER_START_EVENT, AFTER_STOP_EVENT, BEFORE_DESTROY_EVENT, BEFORE_INIT_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, CONFIGURE_START_EVENT, CONFIGURE_STOP_EVENT, PERIODIC_EVENT, START_EVENT, STOP_EVENTFields inherited from interface org.apache.catalina.WrapperADD_MAPPING_EVENT, REMOVE_MAPPING_EVENT
- 
Constructor SummaryConstructorsConstructorDescriptionCreate a new StandardWrapper component with the default basic Valve.
- 
Method SummaryModifier and TypeMethodDescriptionvoidRefuse to add a child Container, because Wrappers are the lowest level of the Container hierarchy.voidaddInitParameter(String name, String value) Add a new servlet initialization parameter for this servlet.voidaddMapping(String mapping) Add a mapping associated with the Wrapper.voidaddNotificationListener(NotificationListener listener, NotificationFilter filter, Object object) Add a JMX-NotificationListenervoidaddSecurityReference(String name, String link) Add a new security role reference record to the set of records for this servlet.allocate()Allocate an initialized instance of this Servlet that is ready to have itsservice()method called.voidExecute a periodic task, such as reloading, etc.voiddeallocate(Servlet servlet) Decrement the allocation count for this servlet.findInitParameter(String name) Return the value for the specified initialization parameter name, if any; otherwise returnnull.String[]Return the names of all defined initialization parameters for this servlet.String[]Return the mappings associated with this wrapper.findSecurityReference(String name) Return the security role link for the specified security role reference name, if any; otherwise returnnull.String[]Return the set of security role reference names associated with this servlet, if any; otherwise return a zero-length array.protected Method[]getAllDeclaredMethods(Class<?> c) longReturn the available date/time for this servlet, in milliseconds since the epoch.intintintDeprecated.The return type will change to long in Tomcat 11 onwards.getInitParameter(String name) Returns aStringcontaining the value of the named initialization parameter, ornullif the parameter does not exist.Returns the names of the servlet's initialization parameters as anEnumerationofStringobjects, or an emptyEnumerationif the servlet has no initialization parameters.intlonglonglongGet JMX Broadcaster Infoprotected StringAllow sub-classes to specify the key properties component of theObjectNamethat will be used to register this component.longintDeprecated.The return type will change to long in Tomcat 11 onwards.static ThrowableExtract the root cause from a servlet exception.getRunAs()Returns a reference to theServletContextin which the caller is executing.String[]Gets the names of the methods supported by the underlying servlet.Returns the name of this servlet instance.voidIncrement the error count used for monitoring.booleanDoes the associated Servlet support async processing?booleanIs the associated Servlet enabled?booleanIs the Servlet overridable by a ServletContainerInitializer?booleanvoidload()Load and initialize an instance of this servlet, if there is not already at least one initialized instance.Load and initialize an instance of this servlet, if there is not already an initialized instance.voidremoveInitParameter(String name) Remove the specified initialization parameter from this servlet.voidremoveMapping(String mapping) Remove a mapping associated with the wrapper.voidRemove a JMX-NotificationListenervoidremoveNotificationListener(NotificationListener listener, NotificationFilter filter, Object object) Remove a JMX notificationListenervoidRemove any security role reference for the specified role name.voidsetAsyncSupported(boolean asyncSupported) Set the async support for the associated Servlet.voidsetAvailable(long available) Set the available date/time for this servlet, in milliseconds since the epoch.voidsetEnabled(boolean enabled) Sets the enabled attribute for the associated servlet.voidsetLoadOnStartup(int value) Set the load-on-startup order value (negative value means load on first call).voidsetLoadOnStartupString(String value) Set the load-on-startup order value from a (possibly null) string.voidsetMultipartConfigElement(MultipartConfigElement multipartConfigElement) Set the multi-part configuration for the associated Servlet.voidsetOverridable(boolean overridable) Sets the overridable attribute for this Servlet.voidSet the parent Container of this Wrapper, but only if it is a Context.voidSet the run-as identity for this servlet.voidsetServlet(Servlet servlet) Set the associated servlet instance.voidsetServletClass(String servletClass) Set the fully qualified servlet class name for this servlet.voidsetServletName(String name) Set the name of this servlet.protected voidStart this component and implement the requirements ofLifecycleBase.startInternal().protected voidStop this component and implement the requirements ofLifecycleBase.stopInternal().voidunavailable(UnavailableException unavailable) Process an UnavailableException, marking this servlet as unavailable for the specified amount of time.voidunload()Unload all initialized instances of this servlet, after calling thedestroy()method for each instance.Methods inherited from class org.apache.catalina.core.ContainerBaseaddContainerListener, addPropertyChangeListener, addValve, destroyInternal, findChild, findChildren, findContainerListeners, fireContainerEvent, getAccessLog, getBackgroundProcessorDelay, getCatalinaBase, getCatalinaHome, getChildren, getCluster, getClusterInternal, getDomainInternal, getLogger, getLogName, getMBeanKeyProperties, getName, getParent, getParentClassLoader, getPipeline, getRealm, getRealmInternal, getStartChildren, getStartStopThreads, logAccess, removeChild, removeContainerListener, removePropertyChangeListener, setBackgroundProcessorDelay, setCluster, setName, setParentClassLoader, setRealm, setStartChildren, setStartStopThreads, threadStart, threadStop, toStringMethods inherited from class org.apache.catalina.util.LifecycleMBeanBasegetDomain, getObjectName, initInternal, postDeregister, postRegister, preDeregister, preRegister, register, setDomain, unregister, unregisterMethods inherited from class org.apache.catalina.util.LifecycleBaseaddLifecycleListener, destroy, findLifecycleListeners, fireLifecycleEvent, getState, getStateName, getThrowOnFailure, init, removeLifecycleListener, setState, setState, setThrowOnFailure, start, stopMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.catalina.ContaineraddContainerListener, addPropertyChangeListener, findChild, findChildren, findContainerListeners, fireContainerEvent, getAccessLog, getBackgroundProcessorDelay, getCatalinaBase, getCatalinaHome, getCluster, getDomain, getLogger, getLogName, getMBeanKeyProperties, getName, getObjectName, getParent, getParentClassLoader, getPipeline, getRealm, getStartStopThreads, logAccess, removeChild, removeContainerListener, removePropertyChangeListener, setBackgroundProcessorDelay, setCluster, setName, setParentClassLoader, setRealm, setStartStopThreadsMethods inherited from interface org.apache.catalina.LifecycleaddLifecycleListener, destroy, findLifecycleListeners, getState, getStateName, init, removeLifecycleListener, start, stop
- 
Field Details- 
DEFAULT_SERVLET_METHODS
- 
availableprotected long availableThe date and time at which this servlet will become available (in milliseconds since the epoch), or zero if the servlet is available. If this value equals Long.MAX_VALUE, the unavailability of this servlet is considered permanent.
- 
broadcasterThe broadcaster that sends j2ee notifications.
- 
countAllocatedThe count of allocations that are currently active.
- 
facadeThe facade associated with this wrapper.
- 
instanceThe (single) possibly uninitialized instance of this servlet.
- 
instanceInitializedprotected volatile boolean instanceInitializedFlag that indicates if this instance has been initialized
- 
loadOnStartupprotected int loadOnStartupThe load-on-startup order value (negative value means load on first call) for this servlet.
- 
mappingsMappings associated with the wrapper.
- 
parametersThe initialization parameters for this servlet, keyed by parameter name.
- 
referencesThe security role references for this servlet, keyed by role name used in the servlet. The corresponding value is the role name of the web application itself.
- 
runAsThe run-as identity for this servlet.
- 
sequenceNumberprotected long sequenceNumberThe notification sequence number.
- 
servletClassThe fully qualified servlet class name for this servlet.
- 
unloadingprotected volatile boolean unloadingAre we unloading our servlet instance at the moment?
- 
unloadDelayprotected long unloadDelayWait time for servlet unload in ms.
- 
isJspServletprotected boolean isJspServletTrue if this StandardWrapper is for the JspServlet
- 
jspMonitorONThe ObjectName of the JSP monitoring mbean
- 
swallowOutputprotected boolean swallowOutputShould we swallow System.out
- 
swValveprotected org.apache.catalina.core.StandardWrapperValve swValve
- 
loadTimeprotected long loadTime
- 
classLoadTimeprotected int classLoadTime
- 
multipartConfigElementMultipart config
- 
asyncSupportedprotected boolean asyncSupportedAsync support
- 
enabledprotected boolean enabledEnabled
- 
classTypeStatic class array used when the SecurityManager is turned on andServlet.initis invoked.
- 
notificationInfo
 
- 
- 
Constructor Details- 
StandardWrapperpublic StandardWrapper()Create a new StandardWrapper component with the default basic Valve.
 
- 
- 
Method Details- 
isOverridablepublic boolean isOverridable()Description copied from interface:WrapperIs the Servlet overridable by a ServletContainerInitializer?- Specified by:
- isOverridablein interface- Wrapper
- Returns:
- trueif the Servlet can be overridden in a ServletContainerInitializer
 
- 
setOverridablepublic void setOverridable(boolean overridable) Description copied from interface:WrapperSets the overridable attribute for this Servlet.- Specified by:
- setOverridablein interface- Wrapper
- Parameters:
- overridable- the new value
 
- 
getAvailablepublic long getAvailable()Return the available date/time for this servlet, in milliseconds since the epoch. If this date/time is Long.MAX_VALUE, it is considered to mean that unavailability is permanent and any request for this servlet will return an SC_NOT_FOUND error. If this date/time is in the future, any request for this servlet will return an SC_SERVICE_UNAVAILABLE error. If it is zero, the servlet is currently available.- Specified by:
- getAvailablein interface- Wrapper
- Returns:
- the available date/time for this servlet, in milliseconds since the epoch. If this date/time is in the future, any request for this servlet will return an SC_SERVICE_UNAVAILABLE error. If it is zero, the servlet is currently available. A value equal to Long.MAX_VALUE is considered to mean that unavailability is permanent.
 
- 
setAvailablepublic void setAvailable(long available) Set the available date/time for this servlet, in milliseconds since the epoch. If this date/time is Long.MAX_VALUE, it is considered to mean that unavailability is permanent and any request for this servlet will return an SC_NOT_FOUND error. If this date/time is in the future, any request for this servlet will return an SC_SERVICE_UNAVAILABLE error.- Specified by:
- setAvailablein interface- Wrapper
- Parameters:
- available- The new available date/time
 
- 
getCountAllocatedpublic int getCountAllocated()- Returns:
- the number of active allocations of this servlet.
 
- 
getLoadOnStartuppublic int getLoadOnStartup()- Specified by:
- getLoadOnStartupin interface- Wrapper
- Returns:
- the load-on-startup order value (negative value means load on first call).
 
- 
setLoadOnStartuppublic void setLoadOnStartup(int value) Set the load-on-startup order value (negative value means load on first call).- Specified by:
- setLoadOnStartupin interface- Wrapper
- Parameters:
- value- New load-on-startup value
 
- 
setLoadOnStartupStringSet the load-on-startup order value from a (possibly null) string. Per the specification, any missing or non-numeric value is converted to a zero, so that this servlet will still be loaded at startup time, but in an arbitrary order.- Parameters:
- value- New load-on-startup value
 
- 
getLoadOnStartupString- Returns:
- the load-on-startup value that was parsed
 
- 
setParentSet the parent Container of this Wrapper, but only if it is a Context.- Specified by:
- setParentin interface- Container
- Overrides:
- setParentin class- ContainerBase
- Parameters:
- container- Proposed parent Container
 
- 
getRunAs
- 
setRunAsSet the run-as identity for this servlet.
- 
getServletClass- Specified by:
- getServletClassin interface- Wrapper
- Returns:
- the fully qualified servlet class name for this servlet.
 
- 
setServletClassSet the fully qualified servlet class name for this servlet.- Specified by:
- setServletClassin interface- Wrapper
- Parameters:
- servletClass- Servlet class name
 
- 
setServletNameSet the name of this servlet. This is an alias for the normalContainer.setName()method, and complements thegetServletName()method required by theServletConfiginterface.- Parameters:
- name- The new name of this servlet
 
- 
getServletMethodsDescription copied from interface:WrapperGets the names of the methods supported by the underlying servlet. This is the same set of methods included in the Allow response header in response to an OPTIONS request method processed by the underlying servlet.- Specified by:
- getServletMethodsin interface- Wrapper
- Returns:
- Array of names of the methods supported by the underlying servlet
- Throws:
- ServletException- If the target servlet cannot be loaded
 
- 
getServlet- Specified by:
- getServletin interface- Wrapper
- Returns:
- the associated servlet instance.
 
- 
setServletSet the associated servlet instance.- Specified by:
- setServletin interface- Wrapper
- Parameters:
- servlet- The associated Servlet
 
- 
backgroundProcesspublic void backgroundProcess()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.- Specified by:
- backgroundProcessin interface- Container
- Overrides:
- backgroundProcessin class- ContainerBase
 
- 
getRootCauseExtract the root cause from a servlet exception.- Parameters:
- e- The servlet exception
- Returns:
- the root cause of the Servlet exception
 
- 
addChildRefuse to add a child Container, because Wrappers are the lowest level of the Container hierarchy.- Specified by:
- addChildin interface- Container
- Overrides:
- addChildin class- ContainerBase
- Parameters:
- child- Child container to be added
 
- 
addInitParameterAdd a new servlet initialization parameter for this servlet.- Specified by:
- addInitParameterin interface- Wrapper
- Parameters:
- name- Name of this initialization parameter to add
- value- Value of this initialization parameter to add
 
- 
addMappingAdd a mapping associated with the Wrapper.- Specified by:
- addMappingin interface- Wrapper
- Parameters:
- mapping- The new wrapper mapping
 
- 
addSecurityReferenceAdd a new security role reference record to the set of records for this servlet.- Specified by:
- addSecurityReferencein interface- Wrapper
- Parameters:
- name- Role name used within this servlet
- link- Role name used within the web application
 
- 
allocateAllocate an initialized instance of this Servlet that is ready to have itsservice()method called.- Specified by:
- allocatein interface- Wrapper
- Returns:
- a new Servlet instance
- Throws:
- ServletException- if the servlet init() method threw an exception
- ServletException- if a loading error occurs
 
- 
deallocateDecrement the allocation count for this servlet.- Specified by:
- deallocatein interface- Wrapper
- Parameters:
- servlet- The servlet to be returned
- Throws:
- ServletException- if a deallocation error occurs
 
- 
findInitParameterReturn the value for the specified initialization parameter name, if any; otherwise returnnull.- Specified by:
- findInitParameterin interface- Wrapper
- Parameters:
- name- Name of the requested initialization parameter
- Returns:
- the value for the specified initialization parameter name,
 if any; otherwise return null.
 
- 
findInitParametersReturn the names of all defined initialization parameters for this servlet.- Specified by:
- findInitParametersin interface- Wrapper
- Returns:
- the names of all defined initialization parameters for this servlet.
 
- 
findMappingsReturn the mappings associated with this wrapper.- Specified by:
- findMappingsin interface- Wrapper
- Returns:
- the mappings associated with this wrapper.
 
- 
findSecurityReferenceReturn the security role link for the specified security role reference name, if any; otherwise returnnull.- Specified by:
- findSecurityReferencein interface- Wrapper
- Parameters:
- name- Security role reference used within this servlet
- Returns:
- the security role link for the specified security role
 reference name, if any; otherwise return null.
 
- 
findSecurityReferencesReturn the set of security role reference names associated with this servlet, if any; otherwise return a zero-length array.- Specified by:
- findSecurityReferencesin interface- Wrapper
- Returns:
- the set of security role reference names associated with this servlet, if any; otherwise return a zero-length array.
 
- 
loadLoad and initialize an instance of this servlet, if there is not already at least one initialized instance. This can be used, for example, to load servlets that are marked in the deployment descriptor to be loaded at server startup time.IMPLEMENTATION NOTE: Servlets whose classnames begin with org.apache.catalina.(so-called "container" servlets) are loaded by the same classloader that loaded this class, rather than the classloader for the current web application. This gives such classes access to Catalina internals, which are prevented for classes loaded for web applications.- Specified by:
- loadin interface- Wrapper
- Throws:
- ServletException- if the servlet init() method threw an exception
- ServletException- if some other loading problem occurs
 
- 
loadServletLoad and initialize an instance of this servlet, if there is not already an initialized instance. This can be used, for example, to load servlets that are marked in the deployment descriptor to be loaded at server startup time.- Returns:
- the loaded Servlet instance
- Throws:
- ServletException- for a Servlet load error
 
- 
removeInitParameterRemove the specified initialization parameter from this servlet.- Specified by:
- removeInitParameterin interface- Wrapper
- Parameters:
- name- Name of the initialization parameter to remove
 
- 
removeMappingRemove a mapping associated with the wrapper.- Specified by:
- removeMappingin interface- Wrapper
- Parameters:
- mapping- The pattern to remove
 
- 
removeSecurityReferenceRemove any security role reference for the specified role name.- Specified by:
- removeSecurityReferencein interface- Wrapper
- Parameters:
- name- Security role used within this servlet to be removed
 
- 
unloadUnload all initialized instances of this servlet, after calling thedestroy()method for each instance. This can be used, for example, prior to shutting down the entire servlet engine, or prior to reloading all of the classes from the Loader associated with our Loader's repository.- Specified by:
- unloadin interface- Wrapper
- Throws:
- ServletException- if an exception is thrown by the destroy() method
 
- 
getInitParameterDescription copied from interface:jakarta.servlet.ServletConfigReturns aStringcontaining the value of the named initialization parameter, ornullif the parameter does not exist.- Specified by:
- getInitParameterin interface- ServletConfig
- Parameters:
- name- Name of the initialization parameter to retrieve
- Returns:
- the initialization parameter value for the specified name, if any; otherwise return null.
 
- 
getInitParameterNamesDescription copied from interface:jakarta.servlet.ServletConfigReturns the names of the servlet's initialization parameters as anEnumerationofStringobjects, or an emptyEnumerationif the servlet has no initialization parameters.- Specified by:
- getInitParameterNamesin interface- ServletConfig
- Returns:
- the set of initialization parameter names defined for this servlet. If none are defined, an empty Enumeration is returned.
 
- 
getServletContextDescription copied from interface:jakarta.servlet.ServletConfigReturns a reference to theServletContextin which the caller is executing.- Specified by:
- getServletContextin interface- ServletConfig
- Returns:
- the servlet context with which this servlet is associated.
- See Also:
 
- 
getServletNameDescription copied from interface:jakarta.servlet.ServletConfigReturns the name of this servlet instance. The name may be provided via server administration, assigned in the web application deployment descriptor, or for an unregistered (and thus unnamed) servlet instance it will be the servlet's class name.- Specified by:
- getServletNamein interface- ServletConfig
- Returns:
- the name of this servlet.
 
- 
getProcessingTimepublic long getProcessingTime()
- 
getMaxTimepublic long getMaxTime()
- 
getMinTimepublic long getMinTime()
- 
getRequestCountDeprecated.The return type will change to long in Tomcat 11 onwards. Callers of this method should switch to storing the result of calls to this method in a long value rather than an int.Returns the number of requests processed by the wrapper.- Returns:
- the number of requests processed by the wrapper.
 
- 
getErrorCountDeprecated.The return type will change to long in Tomcat 11 onwards. Callers of this method should switch to storing the result of calls to this method in a long value rather than an int.Returns the number of requests processed by the wrapper that resulted in an error.- Returns:
- the number of requests processed by the wrapper that resulted in an error.
 
- 
incrementErrorCountpublic void incrementErrorCount()Increment the error count used for monitoring.- Specified by:
- incrementErrorCountin interface- Wrapper
 
- 
getLoadTimepublic long getLoadTime()
- 
getClassLoadTimepublic int getClassLoadTime()
- 
getMultipartConfigElement- Specified by:
- getMultipartConfigElementin interface- Wrapper
- Returns:
- the multi-part configuration for the associated Servlet. If no
 multi-part configuration has been defined, then nullwill be returned.
 
- 
setMultipartConfigElementDescription copied from interface:WrapperSet the multi-part configuration for the associated Servlet. To clear the multi-part configuration specifynullas the new value.- Specified by:
- setMultipartConfigElementin interface- Wrapper
- Parameters:
- multipartConfigElement- The configuration associated with the Servlet
 
- 
isAsyncSupportedpublic boolean isAsyncSupported()Description copied from interface:WrapperDoes the associated Servlet support async processing? Defaults tofalse.- Specified by:
- isAsyncSupportedin interface- Wrapper
- Returns:
- trueif the Servlet supports async
 
- 
setAsyncSupportedpublic void setAsyncSupported(boolean asyncSupported) Description copied from interface:WrapperSet the async support for the associated Servlet.- Specified by:
- setAsyncSupportedin interface- Wrapper
- Parameters:
- asyncSupported- the new value
 
- 
isEnabledpublic boolean isEnabled()Description copied from interface:WrapperIs the associated Servlet enabled? Defaults totrue.
- 
setEnabledpublic void setEnabled(boolean enabled) Description copied from interface:WrapperSets the enabled attribute for the associated servlet.- Specified by:
- setEnabledin interface- Wrapper
- Parameters:
- enabled- the new value
 
- 
getAllDeclaredMethods
- 
startInternalStart this component and implement the requirements ofLifecycleBase.startInternal().- Overrides:
- startInternalin class- ContainerBase
- Throws:
- LifecycleException- if this component detects a fatal error that prevents this component from being used
 
- 
stopInternalStop this component and implement the requirements ofLifecycleBase.stopInternal().- Overrides:
- stopInternalin class- ContainerBase
- Throws:
- LifecycleException- if this component detects a fatal error that prevents this component from being used
 
- 
getObjectNameKeyPropertiesDescription copied from class:LifecycleMBeanBaseAllow sub-classes to specify the key properties component of theObjectNamethat will be used to register this component.- Specified by:
- getObjectNameKeyPropertiesin class- LifecycleMBeanBase
- Returns:
- The string representation of the key properties component of the
          desired ObjectName
 
- 
removeNotificationListenerpublic void removeNotificationListener(NotificationListener listener, NotificationFilter filter, Object object) throws ListenerNotFoundException Remove a JMX notificationListener
- 
getNotificationInfoGet JMX Broadcaster Info- Specified by:
- getNotificationInfoin interface- NotificationBroadcaster
- See Also:
 
- 
addNotificationListenerpublic void addNotificationListener(NotificationListener listener, NotificationFilter filter, Object object) throws IllegalArgumentException Add a JMX-NotificationListener
- 
removeNotificationListenerpublic void removeNotificationListener(NotificationListener listener) throws ListenerNotFoundException Remove a JMX-NotificationListener- Specified by:
- removeNotificationListenerin interface- NotificationBroadcaster
- Throws:
- ListenerNotFoundException
- See Also:
 
 
-