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 ModuleDefinition s and libraries defintions |
void |
shutdown()
Shutdown the repository.
|
add, addLibrary, find, findAll, findAll, getJarLocations, getLocation, getName, initialize, loadJar, newModuleDefinition, remove, removeLibrary, removeListener, toString
protected final File repository
public DirectoryBasedRepository(String name, File repository)
public boolean addListener(RepositoryChangeListener listener)
AbstractRepositoryImpl
addListener
in interface Repository
addListener
in class AbstractRepositoryImpl
listener
- implementation listening to this repository changespublic void shutdown() throws IOException
Repository
shutdown
in interface Repository
shutdown
in class AbstractRepositoryImpl
IOException
- if an error occur accessing the repositoryprotected void loadModuleDefs(Map<ModuleId,ModuleDefinition> moduleDefs, List<URI> libraries) throws IOException
AbstractRepositoryImpl
AbstractRepositoryImpl.initialize()
to load all ModuleDefinition
s and libraries defintionsloadModuleDefs
in class AbstractRepositoryImpl
IOException
protected boolean isDisabled(File jar)
Copyright © 2009–2023 Oracle Corporation. All rights reserved.