|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.enterprise.module.impl.CookedLibRepository
public abstract class CookedLibRepository
| Field Summary | |
|---|---|
protected String[] |
fileNames
|
protected File |
rootLocation
|
| Constructor Summary | |
|---|---|
CookedLibRepository(String installRoot)
Creates a new instance of CookedLibRepository |
|
| Method Summary | |
|---|---|
void |
add(ModuleDefinition definition)
Adds a new module |
ModuleDefinition |
find(String name,
String version)
Finds and returns a DefaultModuleDefinition instance
for a module given the name and version constraints. |
abstract List<ModuleDefinition> |
findAll()
Returns a list of all modules available in this repository |
List<ModuleDefinition> |
findAll(String name)
Finds and returns a list of all the available versions of a module given its name. |
URI |
getLocation()
Returns the repository location |
String |
getName()
Returns the repository name |
abstract void |
initialize()
Initialize the repository for use. |
void |
shutdown()
Shutdown the repository. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.sun.enterprise.module.Repository |
|---|
addListener, getJarLocations, removeListener |
| Field Detail |
|---|
protected final File rootLocation
protected String[] fileNames
| Constructor Detail |
|---|
public CookedLibRepository(String installRoot)
| Method Detail |
|---|
public String getName()
getName in interface Repositorypublic URI getLocation()
getLocation in interface Repository
public ModuleDefinition find(String name,
String version)
DefaultModuleDefinition instance
for a module given the name and version constraints.
find in interface Repositoryname - the requested module nameversion - the requestion module version
DefaultModuleDefinition or null if not found
in this repository.public abstract List<ModuleDefinition> findAll()
findAll in interface Repositorypublic List<ModuleDefinition> findAll(String name)
findAll in interface Repositoryname - the requested module name
public abstract void initialize()
throws IOException
initialize in interface RepositoryIOException - if an error occur accessing the repository
public void add(ModuleDefinition definition)
throws IOException
IOException
public void shutdown()
throws IOException
shutdown in interface RepositoryIOException - if an error occur accessing the repositorypublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||