|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.catalina.core.ContextJarRepository
public class ContextJarRepository
Context specific implementation for a JAR repository, which will manage JARs from /WEB-INF/lib in an efficient way.
Field Summary | |
---|---|
protected java.lang.String |
classesPath
Classes path, which is essentially an exploded Jar. |
protected Container |
container
The Container with which this Pipeline is associated. |
protected java.util.Map<java.lang.String,java.io.File> |
explodedJars
Map for the File instances. |
protected java.io.File[] |
explodedJarsArray
Array of the exploded Jars, as convenience. |
protected java.lang.String |
info
Descriptive information about this implementation. |
protected java.util.Map<java.lang.String,java.util.jar.JarFile> |
jarFiles
Map for the JarFile instances. |
protected java.util.jar.JarFile[] |
jarFilesArray
Array of the JarFiles, as convenience. |
protected java.lang.String |
libPath
Library path. |
protected LifecycleSupport |
lifecycle
The lifecycle event support for this component. |
protected static StringManager |
sm
The string manager for this package. |
protected boolean |
started
Has this component been started yet? |
protected boolean |
tempExplodedJars
Delete temp exploded Jars. |
protected boolean |
tempJars
Delete temp Jars. |
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 | |
---|---|
ContextJarRepository()
Construct a new ContextJarRepository instance with no associated Container. |
|
ContextJarRepository(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. |
protected void |
copyDirContext(javax.naming.directory.DirContext srcDir,
java.io.File destDir)
Copy directory. |
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 Container container
protected java.lang.String info
protected LifecycleSupport lifecycle
protected static StringManager sm
protected boolean started
protected java.lang.String classesPath
protected java.lang.String libPath
protected java.util.Map<java.lang.String,java.util.jar.JarFile> jarFiles
protected java.util.jar.JarFile[] jarFilesArray
protected java.util.Map<java.lang.String,java.io.File> explodedJars
protected java.io.File[] explodedJarsArray
protected boolean tempJars
protected boolean tempExplodedJars
Constructor Detail |
---|
public ContextJarRepository()
public ContextJarRepository(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
protected void copyDirContext(javax.naming.directory.DirContext srcDir, java.io.File destDir) throws java.io.IOException, javax.naming.NamingException
java.io.IOException
javax.naming.NamingException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |