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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.EnumSet<ApiType> getApiTypeVisibility()
      Get the allowed API types for this shared library.
      java.lang.ClassLoader getClassLoader()
      Get the single classloader for this shared library.
      java.util.Collection<com.ibm.wsspi.artifact.ArtifactContainer> getContainers()
      This method returns all the artifact containers from this shared library
      java.util.Collection<java.io.File> getFiles()
      This method returns the Collection of Files
      java.util.Collection<com.ibm.wsspi.config.Fileset> getFilesets()
      This method returns the Collection of Filesets
      java.util.Collection<java.io.File> getFolders()
      This method returns the Collection of Folders
      java.lang.String id()
      The unique identifier for this shared library.
    • Method Detail

      • id

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

        java.util.Collection<com.ibm.wsspi.config.Fileset> getFilesets()
        This method returns the Collection of Filesets
        Returns:
        a list of contained Filesets
      • getClassLoader

        java.lang.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

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

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

        java.util.Collection<java.io.File> getFolders()
        This method returns the Collection of Folders
        Returns:
        a list of contained Folders
      • getContainers

        java.util.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