public abstract class AbstractHandlerContainer extends AbstractHandler implements HandlerContainer
AbstractLifeCycle.AbstractLifeCycleListener
LifeCycle.Listener
_listeners, FAILED, RUNNING, STARTED, STARTING, STOPPED, STOPPING
Constructor and Description |
---|
AbstractHandlerContainer() |
Modifier and Type | Method and Description |
---|---|
void |
dump(Appendable out,
String indent) |
protected Object |
expandChildren(Object list,
Class<?> byClass) |
protected Object |
expandHandler(Handler handler,
Object list,
Class<Handler> 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) |
destroy, doStart, doStop, dumpThis, getServer, setServer
addBean, addBean, contains, dump, dump, dump, dump, dumpObject, dumpStdErr, getBean, getBeans, getBeans, isManaged, manage, removeBean, removeBeans, unmanage
addLifeCycleListener, getState, getState, 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
public <T extends Handler> T getChildHandlerByClass(Class<T> byclass)
getChildHandlerByClass
in interface HandlerContainer
public static <T extends HandlerContainer> T findContainerOf(HandlerContainer root, Class<T> type, Handler handler)
public void dump(Appendable out, String indent) throws IOException
dump
in interface Dumpable
dump
in class AggregateLifeCycle
IOException
Copyright © 1995-2015 Mort Bay Consulting. All Rights Reserved.