|
||||||||||
| 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 java.lang.String[] |
fileNames
|
protected java.io.File |
rootLocation
|
| Constructor Summary | |
|---|---|
CookedLibRepository(java.lang.String installRoot)
Creates a new instance of CookedLibRepository |
|
| Method Summary | |
|---|---|
void |
add(ModuleDefinition definition)
Adds a new module |
ModuleDefinition |
find(java.lang.String name,
java.lang.String version)
Finds and returns a DefaultModuleDefinition instance
for a module given the name and version constraints. |
abstract java.util.List<ModuleDefinition> |
findAll()
Returns a list of all modules available in this repository |
java.util.List<ModuleDefinition> |
findAll(java.lang.String name)
Finds and returns a list of all the available versions of a module given its name. |
java.net.URI |
getLocation()
Returns the repository location |
java.lang.String |
getName()
Returns the repository name |
abstract void |
initialize()
Initialize the repository for use. |
void |
shutdown()
Shutdown the repository. |
java.lang.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 java.io.File rootLocation
protected java.lang.String[] fileNames
| Constructor Detail |
|---|
public CookedLibRepository(java.lang.String installRoot)
| Method Detail |
|---|
public java.lang.String getName()
getName in interface Repositorypublic java.net.URI getLocation()
getLocation in interface Repository
public ModuleDefinition find(java.lang.String name,
java.lang.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 java.util.List<ModuleDefinition> findAll()
findAll in interface Repositorypublic java.util.List<ModuleDefinition> findAll(java.lang.String name)
findAll in interface Repositoryname - the requested module name
public abstract void initialize()
throws java.io.IOException
initialize in interface Repositoryjava.io.IOException - if an error occur accessing the repository
public void add(ModuleDefinition definition)
throws java.io.IOException
java.io.IOException
public void shutdown()
throws java.io.IOException
shutdown in interface Repositoryjava.io.IOException - if an error occur accessing the repositorypublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||