DescriptorFileFinder that
uses a particular classloader in order to find descriptor files.
| Modifier and Type | Field and Description |
|---|---|
| private final ClassLoader | |
| private static final boolean | |
| private static final String | |
| private static final String | |
| private final List | |
| private final String[] | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public | ClasspathDescriptorFileFinder()
If this constructor is used then HK2 descriptor files will be found by looking in the classpath of the process. |
| public | ClasspathDescriptorFileFinder(ClassLoader
May not be null and must be the classloader to use when
searching for HK2 descriptor files cl)This constructor can be used to select the particular classloader to search for HK2 descriptor files. |
| public | ClasspathDescriptorFileFinder(ClassLoader
May not be null and must be the classloader to use when
searching for HK2 descriptor files cl, String... May not be null and must be the name of the files to
search for in the META-INF/hk2-locator directory names)This constructor can be used to select the particular classloader to search for HK2 descriptor files. |
| public | ClasspathDescriptorFileFinder(String
The directory of locator files, the class loader will search from resourceBase, ClassLoader May not be null and must be the classloader to use when
searching for HK2 descriptor files cl)This constructor can be used to select the particular classloader to search for all files from the given locator directory. |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public List | findDescriptorFiles()
Implements org. Simple implementation of the findDescriptorFiles which does a simple getResources on the classloader in order to find the hk2 descriptor files |
| public List | getDescriptorFileInformation()
Implements org. This list must have the same cardinality as
|
| public String |
| classLoader | back to summary |
|---|---|
| private final ClassLoader classLoader | |
| DEBUG_DESCRIPTOR_FINDER | back to summary |
|---|---|
| private static final boolean DEBUG_DESCRIPTOR_FINDER | |
| DEBUG_DESCRIPTOR_FINDER_PROPERTY | back to summary |
|---|---|
| private static final String DEBUG_DESCRIPTOR_FINDER_PROPERTY | |
| DEFAULT_NAME | back to summary |
|---|---|
| private static final String DEFAULT_NAME | |
| identifiers | back to summary |
|---|---|
| private final List<String> identifiers | |
| names | back to summary |
|---|---|
| private final String[] names | |
| resourceBase | back to summary |
|---|---|
| private final String resourceBase | |
| ClasspathDescriptorFileFinder | back to summary |
|---|---|
| public ClasspathDescriptorFileFinder() If this constructor is used then HK2 descriptor files will be found by looking in the classpath of the process. The classloader used will be the classloader for this class itself. The names of the files found will be META-INF/hk2-locator/default. This is most commonly used when using HK2 from a stand-alone client in which all the JAR files are on a single classpath | |
| ClasspathDescriptorFileFinder | back to summary |
|---|---|
| public ClasspathDescriptorFileFinder(ClassLoader cl) This constructor can be used to select the particular classloader to search for HK2 descriptor files. The names of the the files found in this classloader will be META-INF/hk2-locator/default. This is commonly used in more complex classloading scenarios where the HK2 descriptor files are not necessarily on the system classpath.
| |
| ClasspathDescriptorFileFinder | back to summary |
|---|---|
| public ClasspathDescriptorFileFinder(ClassLoader cl, String... names) This constructor can be used to select the particular classloader to search for HK2 descriptor files. The names of the the files found in this classloader will be META-INF/hk2-locator/name.
| |
| ClasspathDescriptorFileFinder | back to summary |
|---|---|
| public ClasspathDescriptorFileFinder(String resourceBase, ClassLoader cl) This constructor can be used to select the particular classloader to search for all files from the given locator directory. By using this constructor, all files in the given directory are assumed to be HK2 descriptor files.
| |
| ClasspathDescriptorFileFinder | back to summary |
|---|---|
| private ClasspathDescriptorFileFinder(String resourceBase, ClassLoader cl, String... names) | |
| findDescriptorFiles | back to summary |
|---|---|
| public List Implements org. Simple implementation of the findDescriptorFiles which does a simple getResources on the classloader in order to find the hk2 descriptor files
| |
| getDescriptorFileInformation | back to summary |
|---|---|
| public List Implements org. Doc from org. This list must have the same cardinality as
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |