| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private boolean | |
| private final ReentrantLock | |
| protected final File | |
| private List | |
| private Timer |
| Access | Constructor and Description |
|---|---|
| public | DirectoryBasedRepository(String name, File repository)
Creates a new instance of DirectoryBasedRepository |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | addListener(RepositoryChangeListener listener)
Overrides com. Implements com. Add a listener to changes happening to this repository. |
| private void | |
| private void | |
| protected boolean | |
| protected void | loadModuleDefs(Map<ModuleId, ModuleDefinition> moduleDefs, List<URI> libraries)
Implements abstract com. Called from |
| public void | shutdown()
Overrides com. Implements com. Shutdown the repository. |
| intervalInMs | back to summary |
|---|---|
| private final int intervalInMs | |
| isTimerThreadDaemon | back to summary |
|---|---|
| private boolean isTimerThreadDaemon | |
| lock | back to summary |
|---|---|
| private final ReentrantLock lock Hides com. | |
| repository | back to summary |
|---|---|
| protected final File repository | |
| subDirectories | back to summary |
|---|---|
| private List<File> subDirectories | |
| timer | back to summary |
|---|---|
| private Timer timer | |
| DirectoryBasedRepository | back to summary |
|---|---|
| public DirectoryBasedRepository(String name, File repository) Creates a new instance of DirectoryBasedRepository | |
| DirectoryBasedRepository | back to summary |
|---|---|
| public DirectoryBasedRepository(String name, File repository, boolean isTimerThreadDaemon) | |
| addListener | back to summary |
|---|---|
| public boolean addListener(RepositoryChangeListener listener) Overrides com. Implements com. Doc from com. Add a listener to changes happening to this repository. Repository can change during the lifetime of an execution (files added/removed/changed)
| |
| directoryChanged | back to summary |
|---|---|
| private void directoryChanged() | |
| initializeSubDirectories | back to summary |
|---|---|
| private void initializeSubDirectories() | |
| isDisabled | back to summary |
|---|---|
| protected boolean isDisabled(File jar) Checks the xyz.disabled file for xyz.jar and return true if the file exists. | |
| loadModuleDefs | back to summary |
|---|---|
| protected void loadModuleDefs(Map<ModuleId, ModuleDefinition> moduleDefs, List<URI> libraries) throws IOException Implements abstract com. Doc from com. Called from | |
| shutdown | back to summary |
|---|---|
| public void shutdown() throws IOException Overrides com. Implements com. Doc from com. Shutdown the repository. After this call return, the find methods cannot be used until initialize() is called again.
| |