@ThreadSafe public final class ServletStatusManager extends com.helger.scope.singleton.AbstractGlobalSingleton
| Constructor and Description |
|---|
ServletStatusManager()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
com.helger.commons.collection.impl.ICommonsMap<String,ServletStatus> |
getAllStatus() |
static ServletStatusManager |
getInstance() |
ServletStatus |
getStatus(Class<? extends javax.servlet.GenericServlet> aServletClass) |
boolean |
isServletRegistered(Class<? extends javax.servlet.GenericServlet> aServletClass)
Static utility method that checks the
ServletContext whether the
passed servlet class is registered or not. |
void |
onServletCtor(Class<? extends javax.servlet.GenericServlet> aServletClass) |
void |
onServletDestroy(Class<? extends javax.servlet.GenericServlet> aServletClass) |
void |
onServletInit(Class<? extends javax.servlet.GenericServlet> aServletClass)
Invoked at the beginning of the servlet initialization.
|
void |
onServletInitFailed(Exception aInitException,
Class<? extends javax.servlet.GenericServlet> aServletClass) |
void |
onServletInvocation(Class<? extends javax.servlet.GenericServlet> aServletClass)
Invoked at the beginning of a servlet invocation
|
com.helger.commons.state.EChange |
reset()
Reset all contained information!
|
getAllGlobalSingletons, getGlobalSingleton, getGlobalSingletonIfInstantiated, isGlobalSingletonInstantiatedgetAllSingletons, getSingleton, getSingletonIfInstantiated, getSingletonScopeKey, isDestroyed, isInDestruction, isInInstantiation, isInPreDestruction, isInstantiated, isSingletonInstantiated, isUsableObject, onAfterInstantiation, onBeforeDestroy, onBeforeScopeDestruction, onDestroy, onScopeDestruction, readAbstractSingletonFields, setDestroyed, setInDestruction, setInInstantiation, setInPreDestruction, setInstantiated, toString, writeAbstractSingletonFields@Deprecated @UsedViaReflection public ServletStatusManager()
@Nonnull public static ServletStatusManager getInstance()
@Nonnull public com.helger.commons.state.EChange reset()
EChangepublic void onServletCtor(@Nonnull Class<? extends javax.servlet.GenericServlet> aServletClass)
public void onServletInit(@Nonnull Class<? extends javax.servlet.GenericServlet> aServletClass)
aServletClass - Relevant servlet class. May not be null.public void onServletInitFailed(@Nonnull Exception aInitException, @Nonnull Class<? extends javax.servlet.GenericServlet> aServletClass)
public void onServletInvocation(@Nonnull Class<? extends javax.servlet.GenericServlet> aServletClass)
aServletClass - Servlet class invoked. May not be null.public void onServletDestroy(@Nonnull Class<? extends javax.servlet.GenericServlet> aServletClass)
@Nullable public ServletStatus getStatus(@Nullable Class<? extends javax.servlet.GenericServlet> aServletClass)
@Nonnull @ReturnsMutableCopy public com.helger.commons.collection.impl.ICommonsMap<String,ServletStatus> getAllStatus()
public boolean isServletRegistered(@Nonnull Class<? extends javax.servlet.GenericServlet> aServletClass)
ServletContext whether the
passed servlet class is registered or not.aServletClass - The servlet class to be checked. May not be null.true if the passed servlet class is contained in the
ServletContext.Copyright © 2017–2019 Philip Helger. All rights reserved.