Assumes the class specified points to a file in the classpath that contains
the name of a class that implements or is a subclass of the specfied class.
Finds the corresponding resources and reads them in as a properties files
Any URL that cannot be read in as a properties file will cause an exception to be thrown.
Assumes the class specified points to a file in the classpath that contains
the name of a class that implements or is a subclass of the specfied class.
Finds the corresponding resources and reads them in as a properties files
Any URL that cannot be read in as a properties file will be added to the
'resourcesNotLoaded' collection.
Assumes the class specified points to a file in the classpath that contains
the name of a class that implements or is a subclass of the specfied class.
Finds the corresponding resource and reads it in as a properties file
Example classpath:
META-INF/widget.properties
ResourceFinder finder = new ResourceFinder("META-INF/");
Properties widgetProps = finder.findProperties("widget.properties");
Usable with JNDI name formats ending in the full class name of the interface
Such as:
- {interfaceClass}
Or with commonPrefix (supplied in constructor) such as:
- {moduleId}/{interfaceClass}
- ejb/{moduleId}/{interfaceClass}
Usable with JNDI name formats including a varying prefix such as ejbName or deploymentID
and ending in the full class name of the interface
Such as:
- {ejbName}/{interfaceClass}
- {deploymentId}/{interfaceClass}
Or with commonPrefix (supplied in constructor) such as:
- {moduleId}/{ejbName}/{interfaceClass}
- ejb/{moduleId}/{deploymentId}/{interfaceClass}
Usable with JNDI name formats comprised of the interfaceClass and ejbClass
For variation, the interface class is the prefix and the ejb class is the
suffix.
Assumes the class specified points to a directory in the classpath that holds files
containing the name of a class that implements or is a subclass of the specfied class.
Finds the corresponding resources and reads them in as a properties files
Any URL that cannot be read in as a properties file will cause an exception to be thrown.
Assumes the class specified points to a directory in the classpath that holds files
containing the name of a class that implements or is a subclass of the specfied class.
Finds the corresponding resources and reads them in as a properties files
Any URL that cannot be read in as a properties file will be added to the
'resourcesNotLoaded' collection.