Interface ResolvedArtifactFile

All Superinterfaces:
AutoCloseable, Closeable

public interface ResolvedArtifactFile extends Closeable
The ResolvedArtifactFile is created by the ArtifactResolver and represents the (possibly remote) artifact file. The contents of which will be copied to an XL-* application server when they're necessary during for instance a deployment.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Allows for cleanup of any resources that were needed in order to create this ResolvedArtifactFile.
    The filename of the file that this ResolvedArtifactFile represents.
    Opens a new InputStream containing the data of the resolved file.
  • Method Details

    • getFileName

      String getFileName()
      The filename of the file that this ResolvedArtifactFile represents.
      Returns:
      the filename
    • openStream

      InputStream openStream() throws IOException
      Opens a new InputStream containing the data of the resolved file.
      Returns:
      an InputStream
      Throws:
      IOException - When there was an error opening the InputStream
    • close

      void close() throws IOException
      Allows for cleanup of any resources that were needed in order to create this ResolvedArtifactFile. (Also see: Closeable.close()

      This method will always be called by the application in order to ensure no resources are leaked.

      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Throws:
      IOException