public abstract class AbstractHandlerContainer extends AbstractHandler implements HandlerContainer
AbstractLifeCycle.AbstractLifeCycleListener
LifeCycle.Listener
Container.InheritedListener, Container.Listener
Constructor and Description |
---|
AbstractHandlerContainer() |
Modifier and Type | Method and Description |
---|---|
protected void |
expandChildren(List<Handler> list,
Class<?> byClass) |
protected void |
expandHandler(Handler handler,
List<Handler> list,
Class<?> byClass) |
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, doStart, doStop, dumpThis, getServer
addBean, addBean, addBean, addEventListener, addManaged, contains, dump, dump, dump, dump, dump, dumpBeans, dumpObject, dumpStdErr, getBean, getBeans, getBeans, isManaged, manage, removeBean, removeBeans, removeEventListener, setBeans, setStopTimeout, start, stop, unmanage, updateBean, updateBean, updateBeans
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getHandlers
addLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
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 © 1995-2016 Webtide. All Rights Reserved.