|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.catalina.core.ServerJarRepository
public class ServerJarRepository
Server specific implementation for a JAR repository, which will manage shared JARs which may contain descriptors. FIXME: Stub impl
Field Summary | |
---|---|
protected Container |
container
The Container with which this Pipeline is associated. |
protected java.lang.String |
info
Descriptive information about this implementation. |
protected LifecycleSupport |
lifecycle
The lifecycle event support for this component. |
protected static java.util.HashSet<java.lang.String> |
skipJars
Names of JARs that are known not to contain any descriptors or annotations. |
protected static StringManager |
sm
The string manager for this package. |
protected boolean |
started
Has this component been started yet? |
Fields inherited from interface org.apache.catalina.Lifecycle |
---|
AFTER_START_EVENT, AFTER_STOP_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, DESTROY_EVENT, INIT_EVENT, PERIODIC_EVENT, START_EVENT, STOP_EVENT |
Constructor Summary | |
---|---|
ServerJarRepository()
Construct a new ContextJarRepository instance with no associated Container. |
|
ServerJarRepository(Container container)
Construct a new ContextJarRepository instance that is associated with the specified Container. |
Method Summary | |
---|---|
void |
addLifecycleListener(LifecycleListener listener)
Add a lifecycle event listener to this component. |
void |
backgroundProcess()
Execute a periodic task, such as reloading, etc. |
java.io.File[] |
findExplodedJars()
Find all exploded Jars managed by the JARRepository. |
java.util.jar.JarFile |
findJar(java.lang.String path)
Find the JarFile corresponding to the path. |
java.util.jar.JarFile[] |
findJars()
Find all JarFile managed by the JARRepository. |
LifecycleListener[] |
findLifecycleListeners()
Get the lifecycle listeners associated with this lifecycle. |
Container |
getContainer()
Return the Container with which this Pipeline is associated. |
java.util.Map<java.lang.String,java.io.File> |
getExplodedJars()
Get the exploded Jar map. |
java.lang.String |
getInfo()
Return descriptive information about this implementation class. |
java.util.Map<java.lang.String,java.util.jar.JarFile> |
getJars()
Get the JarFile map. |
void |
removeLifecycleListener(LifecycleListener listener)
Remove a lifecycle event listener from this component. |
void |
setContainer(Container container)
Set the Container with which this Pipeline is associated. |
void |
start()
Prepare for active use of the public methods of this Component. |
void |
stop()
Gracefully shut down active use of the public methods of this Component. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static java.util.HashSet<java.lang.String> skipJars
protected Container container
protected java.lang.String info
protected LifecycleSupport lifecycle
protected static StringManager sm
protected boolean started
Constructor Detail |
---|
public ServerJarRepository()
public ServerJarRepository(Container container)
container
- The container we should be associated withMethod Detail |
---|
public java.lang.String getInfo()
getInfo
in interface JarRepository
public Container getContainer()
getContainer
in interface Contained
getContainer
in interface JarRepository
public void setContainer(Container container)
setContainer
in interface Contained
setContainer
in interface JarRepository
container
- The new associated containerpublic void addLifecycleListener(LifecycleListener listener)
addLifecycleListener
in interface Lifecycle
listener
- The listener to addpublic LifecycleListener[] findLifecycleListeners()
findLifecycleListeners
in interface Lifecycle
public void removeLifecycleListener(LifecycleListener listener)
removeLifecycleListener
in interface Lifecycle
listener
- The listener to removepublic void start() throws LifecycleException
start
in interface Lifecycle
LifecycleException
- if this component detects a fatal error
that prevents it from being startedpublic void stop() throws LifecycleException
stop
in interface Lifecycle
LifecycleException
- if this component detects a fatal error
that needs to be reportedpublic void backgroundProcess()
backgroundProcess
in interface JarRepository
public java.util.Map<java.lang.String,java.util.jar.JarFile> getJars()
getJars
in interface JarRepository
public java.util.jar.JarFile findJar(java.lang.String path)
findJar
in interface JarRepository
public java.util.jar.JarFile[] findJars()
findJars
in interface JarRepository
public java.util.Map<java.lang.String,java.io.File> getExplodedJars()
getExplodedJars
in interface JarRepository
public java.io.File[] findExplodedJars()
findExplodedJars
in interface JarRepository
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |