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() |
protected String |
getBase() |
boolean |
getClassLoaderOnly()
Should resources returned by this resource set only be included in any
results when the lookup is explicitly looking for class loader resources.
|
protected String |
getInternalPath() |
protected WebResourceRoot |
getRoot() |
boolean |
getStaticOnly()
Should resources returned by this resource set only be included in any
results when the lookup is explicitly looking for static (non-class
loader) resources. i.e. should these resources be excluded from look ups
that are explicitly looking for class loader resources.
|
protected String |
getWebAppMount() |
void |
setBase(String base) |
void |
setClassLoaderOnly(boolean classLoaderOnly) |
void |
setInternalPath(String internalPath) |
void |
setRoot(WebResourceRoot root) |
void |
setStaticOnly(boolean staticOnly) |
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, stopclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBaseUrl, getResource, isReadOnly, list, listWebAppPaths, mkdir, setReadOnly, writeaddLifecycleListener, destroy, findLifecycleListeners, getState, getStateName, init, removeLifecycleListener, start, stopprotected static final StringManager sm
protected final void checkPath(String path)
public final void setRoot(WebResourceRoot root)
setRoot in interface WebResourceSetprotected final WebResourceRoot getRoot()
protected final String getInternalPath()
public final void setInternalPath(String internalPath)
public final void setWebAppMount(String webAppMount)
protected final String getWebAppMount()
public final void setBase(String base)
protected final String getBase()
public boolean getClassLoaderOnly()
WebResourceSetgetClassLoaderOnly in interface WebResourceSettrue if these resources should only be used for
class loader resource lookups, otherwise falsepublic void setClassLoaderOnly(boolean classLoaderOnly)
setClassLoaderOnly in interface WebResourceSetpublic boolean getStaticOnly()
WebResourceSetgetStaticOnly in interface WebResourceSettrue if these resources should only be used for
static (non-class loader) resource lookups, otherwise
falsepublic void setStaticOnly(boolean staticOnly)
setStaticOnly in interface WebResourceSetprotected final void startInternal()
throws LifecycleException
LifecycleBaseLifecycleState.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 LifecycleBaseLifecycleExceptionprotected final void stopInternal()
throws LifecycleException
LifecycleBaseLifecycleState.STOPPING during the execution of this method.
Changing state will trigger the Lifecycle.STOP_EVENT event.stopInternal in class LifecycleBaseLifecycleExceptionprotected final void destroyInternal()
throws LifecycleException
destroyInternal in class LifecycleBaseLifecycleExceptionCopyright © 2000-2015 Apache Software Foundation. All Rights Reserved.