Top Fields Constructors Methods
com.sun.enterprise.module.impl

public abstract Class CookedLibRepository

extends Object
implements Repository
Class Inheritance
All Implemented Interfaces
com.sun.enterprise.module.Repository
Imports
com.sun.enterprise.module.ModuleDefinition, .Repository, java.io.File, .IOException, java.net.URI, java.util.ArrayList, .List

Author
dochez

Field Summary

Modifier and TypeField and Description
protected String[]
protected final File

Constructor Summary

AccessConstructor and Description
public
CookedLibRepository(String installRoot)

Creates a new instance of CookedLibRepository

Method Summary

Modifier and TypeMethod and Description
public void
add(ModuleDefinition definition)

Adds a new module

public ModuleDefinition

Returns:

a DefaultModuleDefinition or null if not found in this repository.
find
(String
the requested module name
name
,
String
the requestion module version
version
)

Implements com.sun.enterprise.module.Repository.find.

Finds and returns a DefaultModuleDefinition instance for a module given the name and version constraints.

public abstract List<ModuleDefinition>

Returns:

a list of available modules
findAll
()

Redeclares com.sun.enterprise.module.Repository.findAll.

Returns a list of all modules available in this repository

public List<ModuleDefinition>
findAll(String
the requested module name
name
)

Implements com.sun.enterprise.module.Repository.findAll.

Finds and returns a list of all the available versions of a module given its name.

public URI

Returns:

the URL for the repository location
getLocation
()

Implements com.sun.enterprise.module.Repository.getLocation.

Returns the repository location

public String

Returns:

repository name
getName
()

Implements com.sun.enterprise.module.Repository.getName.

Returns the repository name

public abstract void
initialize()

Redeclares com.sun.enterprise.module.Repository.initialize.

Initialize the repository for use.

public void
shutdown()

Implements com.sun.enterprise.module.Repository.shutdown.

Shutdown the repository.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

fileNamesback to summary
protected String[] fileNames
rootLocationback to summary
protected final File rootLocation

Constructor Detail

CookedLibRepositoryback to summary
public CookedLibRepository(String installRoot)

Creates a new instance of CookedLibRepository

Method Detail

addback to summary
public void add(ModuleDefinition definition) throws IOException

Adds a new module

findback to summary
public ModuleDefinition find(String name, String version)

Implements com.sun.enterprise.module.Repository.find.

Finds and returns a DefaultModuleDefinition instance for a module given the name and version constraints.

Parameters
name:String

the requested module name

version:String

the requestion module version

Returns:ModuleDefinition

a DefaultModuleDefinition or null if not found in this repository.

findAllback to summary
public abstract List<ModuleDefinition> findAll()

Redeclares com.sun.enterprise.module.Repository.findAll.

Returns a list of all modules available in this repository

Returns:List<ModuleDefinition>

a list of available modules

findAllback to summary
public List<ModuleDefinition> findAll(String name)

Implements com.sun.enterprise.module.Repository.findAll.

Finds and returns a list of all the available versions of a module given its name.

Parameters
name:String

the requested module name

getLocationback to summary
public URI getLocation()

Implements com.sun.enterprise.module.Repository.getLocation.

Returns the repository location

Returns:URI

the URL for the repository location

getNameback to summary
public String getName()

Implements com.sun.enterprise.module.Repository.getName.

Returns the repository name

Returns:String

repository name

initializeback to summary
public abstract void initialize() throws IOException

Redeclares com.sun.enterprise.module.Repository.initialize.

Initialize the repository for use. This need to be called at least once before any find methods is invoked.

Exceptions
IOException:
if an error occur accessing the repository
shutdownback to summary
public void shutdown() throws IOException

Implements com.sun.enterprise.module.Repository.shutdown.

Shutdown the repository. After this call return, the find methods cannot be used until initialize() is called again.

Exceptions
IOException:
if an error occur accessing the repository
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.