public class DirectoryBasedRepository extends AbstractRepositoryImpl
| Modifier and Type | Field and Description |
|---|---|
protected File |
repository |
listeners| Constructor and Description |
|---|
DirectoryBasedRepository(String name,
File repository)
Creates a new instance of DirectoryBasedRepository
|
DirectoryBasedRepository(String name,
File repository,
boolean isTimerThreadDaemon) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addListener(RepositoryChangeListener listener)
Add a listener to changes happening to this repository.
|
protected boolean |
isDisabled(File jar)
Checks the xyz.disabled file for xyz.jar and return true
if the file exists.
|
protected void |
loadModuleDefs(Map<ModuleId,ModuleDefinition> moduleDefs,
List<URI> libraries)
Called from
AbstractRepositoryImpl.initialize() to load all ModuleDefinitions and libraries defintions |
void |
shutdown()
Shutdown the repository.
|
add, addLibrary, find, findAll, findAll, getJarLocations, getLocation, getName, initialize, loadJar, newModuleDefinition, remove, removeLibrary, removeListener, toStringprotected final File repository
public DirectoryBasedRepository(String name, File repository)
public boolean addListener(RepositoryChangeListener listener)
AbstractRepositoryImpladdListener in interface RepositoryaddListener in class AbstractRepositoryImpllistener - implementation listening to this repository changespublic void shutdown()
throws IOException
Repositoryshutdown in interface Repositoryshutdown in class AbstractRepositoryImplIOException - if an error occur accessing the repositoryprotected void loadModuleDefs(Map<ModuleId,ModuleDefinition> moduleDefs, List<URI> libraries) throws IOException
AbstractRepositoryImplAbstractRepositoryImpl.initialize() to load all ModuleDefinitions and libraries defintionsloadModuleDefs in class AbstractRepositoryImplIOExceptionprotected boolean isDisabled(File jar)
Copyright © 2009-2015 Oracle Corporation. All Rights Reserved.