public abstract class AbstractResourceSet extends LifecycleBase implements WebResourceSet
Lifecycle.SingleUse
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(java.lang.String path) |
protected void |
destroyInternal() |
protected java.lang.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 java.lang.String |
getInternalPath() |
protected java.util.jar.Manifest |
getManifest() |
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 java.lang.String |
getWebAppMount() |
void |
setBase(java.lang.String base) |
void |
setClassLoaderOnly(boolean classLoaderOnly) |
void |
setInternalPath(java.lang.String internalPath) |
protected void |
setManifest(java.util.jar.Manifest manifest) |
void |
setRoot(WebResourceRoot root) |
void |
setStaticOnly(boolean staticOnly) |
void |
setWebAppMount(java.lang.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
gc, getBaseUrl, getResource, isReadOnly, list, listWebAppPaths, mkdir, setReadOnly, write
addLifecycleListener, destroy, findLifecycleListeners, getState, getStateName, init, removeLifecycleListener, start, stop
protected static final StringManager sm
protected final void checkPath(java.lang.String path)
public final void setRoot(WebResourceRoot root)
setRoot
in interface WebResourceSet
protected final WebResourceRoot getRoot()
protected final java.lang.String getInternalPath()
public final void setInternalPath(java.lang.String internalPath)
public final void setWebAppMount(java.lang.String webAppMount)
protected final java.lang.String getWebAppMount()
public final void setBase(java.lang.String base)
protected final java.lang.String getBase()
public boolean getClassLoaderOnly()
WebResourceSet
getClassLoaderOnly
in interface WebResourceSet
true
if these resources should only be used for
class loader resource lookups, otherwise false
public void setClassLoaderOnly(boolean classLoaderOnly)
setClassLoaderOnly
in interface WebResourceSet
public boolean getStaticOnly()
WebResourceSet
getStaticOnly
in interface WebResourceSet
true
if these resources should only be used for
static (non-class loader) resource lookups, otherwise
false
public void setStaticOnly(boolean staticOnly)
setStaticOnly
in interface WebResourceSet
protected final void setManifest(java.util.jar.Manifest manifest)
protected final java.util.jar.Manifest getManifest()
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-2018 Apache Software Foundation. All Rights Reserved.