java.lang.Object
com.sun.enterprise.module.impl.CookedLibRepository
- All Implemented Interfaces:
Repository
- Author:
- dochez
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCookedLibRepository(String installRoot) Creates a new instance of CookedLibRepository -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(ModuleDefinition definition) Adds a new moduleFinds and returns aDefaultModuleDefinitioninstance for a module given the name and version constraints.abstract List<ModuleDefinition>findAll()Returns a list of all modules available in this repositoryFinds and returns a list of all the available versions of a module given its name.Returns the repository locationgetName()Returns the repository nameabstract voidInitialize the repository for use.voidshutdown()Shutdown the repository.toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.sun.enterprise.module.Repository
addListener, getJarLocations, removeListener
-
Field Details
-
rootLocation
-
fileNames
-
-
Constructor Details
-
CookedLibRepository
Creates a new instance of CookedLibRepository
-
-
Method Details
-
getName
Returns the repository name- Specified by:
getNamein interfaceRepository- Returns:
- repository name
-
getLocation
Returns the repository location- Specified by:
getLocationin interfaceRepository- Returns:
- the URL for the repository location
-
find
Finds and returns aDefaultModuleDefinitioninstance for a module given the name and version constraints.- Specified by:
findin interfaceRepository- Parameters:
name- the requested module nameversion- the requestion module version- Returns:
- a
DefaultModuleDefinitionor null if not found in this repository.
-
findAll
Returns a list of all modules available in this repository- Specified by:
findAllin interfaceRepository- Returns:
- a list of available modules
-
findAll
Finds and returns a list of all the available versions of a module given its name.- Specified by:
findAllin interfaceRepository- Parameters:
name- the requested module name
-
initialize
Initialize the repository for use. This need to be called at least once before any find methods is invoked.- Specified by:
initializein interfaceRepository- Throws:
IOException- if an error occur accessing the repository
-
add
Adds a new module- Throws:
IOException
-
shutdown
Shutdown the repository. After this call return, the find methods cannot be used until initialize() is called again.- Specified by:
shutdownin interfaceRepository- Throws:
IOException- if an error occur accessing the repository
-
toString
-