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
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.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 java.util.List<java.io.InputStream>
findDescriptorFiles()
Returns a list of input streams for hk2 locator files
-
-
-
Field Detail
-
RESOURCE_BASE
static final java.lang.String RESOURCE_BASE
The name of the default location for hk2 inhabitant files- See Also:
- Constant Field Values
-
-
Method Detail
-
findDescriptorFiles
java.util.List<java.io.InputStream> findDescriptorFiles() throws java.io.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:
java.io.IOException
- If there was an error finding the hk2 inhabitant files
-
-