public class DirectoryBasedRepository extends AbstractRepositoryImpl
| Modifier and Type | Field and Description |
|---|---|
protected java.io.File |
repository |
listeners| Constructor and Description |
|---|
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) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
add, addLibrary, find, findAll, findAll, getJarLocations, getLocation, getName, initialize, loadJar, newModuleDefinition, remove, removeLibrary, removeListener, toStringpublic DirectoryBasedRepository(java.lang.String name,
java.io.File repository)
public DirectoryBasedRepository(java.lang.String name,
java.io.File repository,
boolean isTimerThreadDaemon)
public boolean addListener(RepositoryChangeListener listener)
AbstractRepositoryImpladdListener in interface RepositoryaddListener in class AbstractRepositoryImpllistener - implementation listening to this repository changespublic void shutdown()
throws java.io.IOException
Repositoryshutdown in interface Repositoryshutdown in class AbstractRepositoryImpljava.io.IOException - if an error occur accessing the repositoryprotected 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 defintionsloadModuleDefs in class AbstractRepositoryImpljava.io.IOExceptionprotected boolean isDisabled(java.io.File jar)
Copyright © 2013 Oracle Corporation. All Rights Reserved.