Package org.glassfish.hk2.api
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 implementDescriptorFileFinderInformation
for better information when a failure occurs- Author:
- jwells
-
-
Field Summary
Fields Modifier and Type Field Description static String
RESOURCE_BASE
The name of the default location for hk2 inhabitant files
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<InputStream>
findDescriptorFiles()
Returns a list of input streams for hk2 locator files
-
-
-
Field Detail
-
RESOURCE_BASE
static final String RESOURCE_BASE
The name of the default location for hk2 inhabitant files- See Also:
- Constant Field Values
-
-
Method Detail
-
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
-
-