public abstract class AbstractHandlerContainer extends AbstractHandler implements HandlerContainer
AbstractHandler.ErrorDispatchHandler
AbstractLifeCycle.AbstractLifeCycleListener
LifeCycle.Listener
Container.InheritedListener, Container.Listener
Constructor and Description |
---|
AbstractHandlerContainer() |
Modifier and Type | Method and Description |
---|---|
static <T extends HandlerContainer> |
findContainerOf(HandlerContainer root,
Class<T> type,
Handler handler) |
<T extends Handler> |
getChildHandlerByClass(Class<T> byclass) |
Handler[] |
getChildHandlers() |
Handler[] |
getChildHandlersByClass(Class<?> byclass) |
void |
setServer(Server server) |
destroy, getServer, handle
addBean, addBean, addEventListener, addManaged, contains, dump, dump, dump, dump, dump, dumpObject, dumpStdErr, getBean, getBeans, getBeans, getContainedBeans, isAuto, isManaged, isUnmanaged, manage, removeBean, removeBeans, removeEventListener, setBeans, setStopTimeout, unmanage, updateBean, updateBean, updateBeans
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getHandlers
addLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, start, stop, stop
dumpContainer, dumpIterable, dumpMapEntries, dumpObjects, dumpSelf, named
public Handler[] getChildHandlers()
getChildHandlers
in interface HandlerContainer
public Handler[] getChildHandlersByClass(Class<?> byclass)
getChildHandlersByClass
in interface HandlerContainer
byclass
- the child handler class to getpublic <T extends Handler> T getChildHandlerByClass(Class<T> byclass)
getChildHandlerByClass
in interface HandlerContainer
T
- the type of handlerbyclass
- the child handler class to getpublic static <T extends HandlerContainer> T findContainerOf(HandlerContainer root, Class<T> type, Handler handler)
public void setServer(Server server)
setServer
in interface Handler
setServer
in class AbstractHandler
Copyright © 2010 - 2020 Adobe. All Rights Reserved