Top Description Fields Methods
org.glassfish.hk2.api

public Interface DescriptorFileFinder

Known Direct Implementers
org.glassfish.hk2.utilities.ClasspathDescriptorFileFinder
Annotations
@Contract
Imports
java.io.IOException, .InputStream, java.util.List, org.jvnet.hk2.annotations.Contract

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
Author
jwells

Field Summary

Modifier and TypeField and Description
public static final String
RESOURCE_BASE

The name of the default location for hk2 inhabitant files

Method Summary

Modifier and TypeMethod and Description
public List<InputStream>

Returns:

A non-null (but possibly empty) list of InputStreams for hk2 inhabitant files
findDescriptorFiles
()

Returns a list of input streams for hk2 locator files

Field Detail

RESOURCE_BASEback to summary
public static final String RESOURCE_BASE

The name of the default location for hk2 inhabitant files

Method Detail

findDescriptorFilesback to summary
public List<InputStream> findDescriptorFiles() throws IOException

Returns a list of input streams for hk2 locator files

Returns:List<InputStream>

A non-null (but possibly empty) list of InputStreams for hk2 inhabitant files

Exceptions
IOException:
If there was an error finding the hk2 inhabitant files