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 Details

    • id

      String id()
      The unique identifier for this shared library.
    • getFilesets

      Collection<com.ibm.wsspi.config.Fileset> getFilesets()
      This method returns the Collection 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

      EnumSet<ApiType> getApiTypeVisibility()
      Get the allowed API types for this shared library.
    • getFiles

      Collection<File> getFiles()
      This method returns the Collection of Files
      Returns:
      a list of contained Files
    • getFolders

      Collection<File> getFolders()
      This method returns the Collection 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