Interface DescriptorFileFinder

All Known Subinterfaces:
DescriptorFileFinder
All Known Implementing Classes:
ClasspathDescriptorFileFinder, ClasspathDescriptorFileFinder, URLDescriptorFileFinder

@Contract public interface DescriptorFileFinder
Implementations of this interface allow the customization of how hk2 inhabitant files are found. Classes that implement this interface should also implement DescriptorFileFinderInformation for better information when a failure occurs
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The name of the default location for hk2 inhabitant files
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a list of input streams for hk2 locator files
  • Field Details

    • RESOURCE_BASE

      static final String RESOURCE_BASE
      The name of the default location for hk2 inhabitant files
      See Also:
  • Method Details

    • findDescriptorFiles

      List<InputStream> findDescriptorFiles() throws IOException
      Returns a list of input streams for hk2 locator files
      Returns:
      A non-null (but possibly empty) list of InputStreams for hk2 inhabitant files
      Throws:
      IOException - If there was an error finding the hk2 inhabitant files