Description
based on EXTCDI-204 it should be possible to use:
@Bundle //without #name it will be mapped by convention
public interface MyConfig
{
@Named("value1")
public class MyValue1 implements BundleKey, MyConfig {} //not autom. resolvable
public class Value2 extends BundleValue implements MyConfig {} //autom. resolvable
}
usage:
@Inject
private MyConfig.MyValue2 value2;
as mentioned in the example that's esp. useful for a property file based type-safe config.