|
|||||||||
| 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 with| Method Detail |
|---|
public java.lang.String getInfo()
getInfo in interface JarRepositorypublic Container getContainer()
getContainer in interface ContainedgetContainer in interface JarRepositorypublic void setContainer(Container container)
setContainer in interface ContainedsetContainer in interface JarRepositorycontainer - The new associated containerpublic void addLifecycleListener(LifecycleListener listener)
addLifecycleListener in interface Lifecyclelistener - The listener to addpublic LifecycleListener[] findLifecycleListeners()
findLifecycleListeners in interface Lifecyclepublic void removeLifecycleListener(LifecycleListener listener)
removeLifecycleListener in interface Lifecyclelistener - The listener to remove
public void start()
throws LifecycleException
start in interface LifecycleLifecycleException - if this component detects a fatal error
that prevents it from being started
public void stop()
throws LifecycleException
stop in interface LifecycleLifecycleException - if this component detects a fatal error
that needs to be reportedpublic void backgroundProcess()
backgroundProcess in interface JarRepositorypublic java.util.Map<java.lang.String,java.util.jar.JarFile> getJars()
getJars in interface JarRepositorypublic java.util.jar.JarFile findJar(java.lang.String path)
findJar in interface JarRepositorypublic java.util.jar.JarFile[] findJars()
findJars in interface JarRepositorypublic java.util.Map<java.lang.String,java.io.File> getExplodedJars()
getExplodedJars in interface JarRepositorypublic java.io.File[] findExplodedJars()
findExplodedJars in interface JarRepository
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||