Package com.ibm.wsspi.library
Interface Library
public interface Library
A library, configured in server.xml, may contain folders, files (i.e. JARs and native libraries), and filesets.
Do not implement this interface. Liberty class loaders will only work with the Liberty implementations of this interface.
-
Method Summary
Modifier and TypeMethodDescriptionGet the allowed API types for this shared library.Get the single classloader for this shared library.Collection<com.ibm.wsspi.artifact.ArtifactContainer>
This method returns all the artifact containers from this shared librarygetFiles()
This method returns theCollection
of FilesCollection<com.ibm.wsspi.config.Fileset>
This method returns theCollection
of FilesetsThis method returns theCollection
of Foldersid()
The unique identifier for this shared library.
-
Method Details
-
id
String id()The unique identifier for this shared library. -
getFilesets
Collection<com.ibm.wsspi.config.Fileset> getFilesets()This method returns theCollection
of Filesets- Returns:
- a list of contained Filesets
-
getClassLoader
ClassLoader getClassLoader()Get the single classloader for this shared library. There should be at most one of these in existence at any one time. -
getApiTypeVisibility
Get the allowed API types for this shared library. -
getFiles
Collection<File> getFiles()This method returns theCollection
of Files- Returns:
- a list of contained Files
-
getFolders
Collection<File> getFolders()This method returns theCollection
of Folders- Returns:
- a list of contained Folders
-
getContainers
Collection<com.ibm.wsspi.artifact.ArtifactContainer> getContainers()This method returns all the artifact containers from this shared library- Returns:
- a collection of contained artifact containers
-