Description
Seam 3's Solder module had some nice resource loading functionality within the org.jboss.solder.resourceLoader packages. With it you could do the following:
// Load a properties file
@Inject @Resource("app.properties")
private Properties appProperties;
or:
@Inject
private ResourceProvider resourceProvider
public Properties getHostProperties() {
String hostname = java.net.InetAddress.getLocalHost().getHostName();
return resourceProvider.loadPropertiesBundle(hostname + ".properties");
}