| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if the listener was added successfullyimplementation listening to this repository changes listener)Add a listener to changes happening to this repository. |
| public ModuleDefinition | Returns: aDefaultModuleDefinition or null if not found
in this repository.the requested module name name, String the module version. Can be null if the caller doesn't care about the version. version)Finds and returns a |
| public List | Returns: a list of available modulesReturns a list of all modules available in this repository |
| public List | |
| public List | Returns: jar files location stored in this repository.Returns the plain jar files installed in this repository. |
| public URI | |
| public String | |
| public void | |
| public boolean | Returns: true if the listener was successfully unregisteredthe previously registered listener listener)Removes a previously registered listener |
| public void |
| addListener | back to summary |
|---|---|
| public boolean addListener(RepositoryChangeListener listener) Add a listener to changes happening to this repository. Repository can change during the lifetime of an execution (files added/removed/changed)
| |
| find | back to summary |
|---|---|
| public ModuleDefinition find(String name, String version) Finds and returns a
| |
| findAll | back to summary |
|---|---|
| public List Returns a list of all modules available in this repository
| |
| findAll | back to summary |
|---|---|
| public List Finds and returns a list of all the available versions of a module given its name.
| |
| getJarLocations | back to summary |
|---|---|
| public List Returns the plain jar files installed in this repository. Plain jar files are not modules, they do not have the module's metadata and can only be used when referenced from a module dependency list or when added to a class loader directly | |
| getLocation | back to summary |
|---|---|
| public URI getLocation() Returns the repository location
| |
| getName | back to summary |
|---|---|
| public String getName() Returns the repository name
| |
| initialize | back to summary |
|---|---|
| public void initialize() throws IOException Initialize the repository for use. This need to be called at least once before any find methods is invoked.
| |
| removeListener | back to summary |
|---|---|
| public boolean removeListener(RepositoryChangeListener listener) Removes a previously registered listener
| |
| shutdown | back to summary |
|---|---|
| public void shutdown() throws IOException Shutdown the repository. After this call return, the find methods cannot be used until initialize() is called again.
| |