|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.enterprise.module.common_impl.AbstractRepositoryImpl
com.sun.enterprise.module.common_impl.DirectoryBasedRepository
public class DirectoryBasedRepository
This class is a directory based repository implementation. This mean that all jar file residing a particular directory will be elligible to be added to this repository instance. Jar File will need to be compliant with the module definition spec which mean have a manifest file with the correct elements OR a separate manifest file with the same file name with a .mf extension.
| Field Summary | |
|---|---|
protected java.io.File |
repository
|
| Fields inherited from class com.sun.enterprise.module.common_impl.AbstractRepositoryImpl |
|---|
listeners |
| Constructor Summary | |
|---|---|
DirectoryBasedRepository(java.lang.String name,
java.io.File repository)
Creates a new instance of DirectoryBasedRepository |
|
DirectoryBasedRepository(java.lang.String name,
java.io.File repository,
boolean isTimerThreadDaemon)
|
|
| Method Summary | |
|---|---|
boolean |
addListener(RepositoryChangeListener listener)
Add a listener to changes happening to this repository. |
protected boolean |
isDisabled(java.io.File jar)
Checks the xyz.disabled file for xyz.jar and return true if the file exists. |
protected void |
loadModuleDefs(java.util.Map<ModuleId,ModuleDefinition> moduleDefs,
java.util.List<java.net.URI> libraries)
Called from AbstractRepositoryImpl.initialize() to load all ModuleDefinitions and libraries defintions |
void |
shutdown()
Shutdown the repository. |
| Methods inherited from class com.sun.enterprise.module.common_impl.AbstractRepositoryImpl |
|---|
add, addLibrary, find, findAll, findAll, getJarLocations, getLocation, getName, initialize, loadJar, newModuleDefinition, remove, removeLibrary, removeListener, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final java.io.File repository
| Constructor Detail |
|---|
public DirectoryBasedRepository(java.lang.String name,
java.io.File repository)
public DirectoryBasedRepository(java.lang.String name,
java.io.File repository,
boolean isTimerThreadDaemon)
| Method Detail |
|---|
public boolean addListener(RepositoryChangeListener listener)
AbstractRepositoryImpl
addListener in interface RepositoryaddListener in class AbstractRepositoryImpllistener - implementation listening to this repository changes
public void shutdown()
throws java.io.IOException
Repository
shutdown in interface Repositoryshutdown in class AbstractRepositoryImpljava.io.IOException - if an error occur accessing the repository
protected void loadModuleDefs(java.util.Map<ModuleId,ModuleDefinition> moduleDefs,
java.util.List<java.net.URI> libraries)
throws java.io.IOException
AbstractRepositoryImplAbstractRepositoryImpl.initialize() to load all ModuleDefinitions and libraries defintions
loadModuleDefs in class AbstractRepositoryImpljava.io.IOExceptionprotected boolean isDisabled(java.io.File jar)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||