org.apache.catalina
Interface JarRepository

All Known Implementing Classes:
ContextJarRepository, ServerJarRepository

public interface JarRepository

A JarRepository manages a set of Jars associated with a Context, and allows efficient access to them.

Version:
$Revision: 515 $ $Date: 2008-03-17 22:02:23 +0100 (Mon, 17 Mar 2008) $
Author:
Remy Maucherat

Method Summary
 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.
 Container getContainer()
          Return the Container with which this JARRepository has been 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 JARRepository implementation and the corresponding version number, in the format <description>/<version>.
 java.util.Map<java.lang.String,java.util.jar.JarFile> getJars()
          Get the JarFile map.
 void setContainer(Container container)
          Set the Container with which this JARRepository has been associated.
 

Method Detail

getContainer

Container getContainer()
Return the Container with which this JARRepository has been associated.


setContainer

void setContainer(Container container)
Set the Container with which this JARRepository has been associated.

Parameters:
container - The associated Container

getInfo

java.lang.String getInfo()
Return descriptive information about this JARRepository implementation and the corresponding version number, in the format <description>/<version>.


backgroundProcess

void backgroundProcess()
Execute a periodic task, such as reloading, etc. This method will be invoked inside the classloading context of this container. Unexpected throwables will be caught and logged.


getJars

java.util.Map<java.lang.String,java.util.jar.JarFile> getJars()
Get the JarFile map.

Returns:
the JarFile map, associating logical name with JarFile

findJar

java.util.jar.JarFile findJar(java.lang.String path)
Find the JarFile corresponding to the path.

Returns:
the JarFile, or null if not found

findJars

java.util.jar.JarFile[] findJars()
Find all JarFile managed by the JARRepository.

Returns:
All JarFile

findExplodedJars

java.io.File[] findExplodedJars()
Find all exploded Jars managed by the JARRepository.

Returns:
All exploded File

getExplodedJars

java.util.Map<java.lang.String,java.io.File> getExplodedJars()
Get the exploded Jar map.

Returns:
the Jar map, associating logical name with File


Copyright © 2000-2009 Apache Software Foundation. All Rights Reserved.