public abstract class AbstractResourceSet extends LifecycleBase implements WebResourceSet
Modifier and Type | Field and Description |
---|---|
protected static StringManager |
sm |
AFTER_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_EVENT
Constructor and Description |
---|
AbstractResourceSet() |
Modifier and Type | Method and Description |
---|---|
protected void |
checkPath(String path) |
protected void |
destroyInternal() |
String |
getBase() |
String |
getInternalPath() |
WebResourceRoot |
getRoot() |
String |
getWebAppMount() |
void |
setBase(String base) |
void |
setInternalPath(String internalPath) |
void |
setRoot(WebResourceRoot root) |
void |
setWebAppMount(String webAppMount) |
protected void |
startInternal()
Sub-classes must ensure that the state is changed to
LifecycleState.STARTING during the execution of this method. |
protected void |
stopInternal()
Sub-classes must ensure that the state is changed to
LifecycleState.STOPPING during the execution of this method. |
addLifecycleListener, destroy, findLifecycleListeners, fireLifecycleEvent, getState, getStateName, init, initInternal, removeLifecycleListener, setState, setState, start, stop
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getResource, list, listWebAppPaths, mkdir, write
addLifecycleListener, destroy, findLifecycleListeners, getState, getStateName, init, removeLifecycleListener, start, stop
protected static final StringManager sm
protected final void checkPath(String path)
public final void setRoot(WebResourceRoot root)
setRoot
in interface WebResourceSet
public final WebResourceRoot getRoot()
public String getInternalPath()
public void setInternalPath(String internalPath)
public final void setWebAppMount(String webAppMount)
public final String getWebAppMount()
public final void setBase(String base)
public final String getBase()
protected final void startInternal() throws LifecycleException
LifecycleBase
LifecycleState.STARTING
during the execution of this method.
Changing state will trigger the Lifecycle.START_EVENT
event.
If a component fails to start it may either throw a
LifecycleException
which will cause it's parent to fail to start
or it can place itself in the error state in which case LifecycleBase.stop()
will be called on the failed component but the parent component will
continue to start normally.startInternal
in class LifecycleBase
LifecycleException
protected final void stopInternal() throws LifecycleException
LifecycleBase
LifecycleState.STOPPING
during the execution of this method.
Changing state will trigger the Lifecycle.STOP_EVENT
event.stopInternal
in class LifecycleBase
LifecycleException
protected final void destroyInternal() throws LifecycleException
destroyInternal
in class LifecycleBase
LifecycleException
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.