There's a convenient method in Google Guice which allows binding of properties in one call:
Names.bindProperties(binder(), myProperties);
which are then injectable by annotation:
@Inject
@Named("my.properties.server.url")
private String serverUrl;
Is there an equivalent method in CDI (implemented by Weld) or something even better?