The interface helps to obtain references to configuration interfaces.
Examples:
// field injection @Inject protected Configuration configuration; ... String tempDir = configuration.getConfig(GlobalConfig.class).getTempDir();
// setter injection protected GlobalConfig globalConfig; @Inject public void setConfiguration(Configuration configuration) { this.globalConfig = configuration.getConfig(GlobalConfig.class); }
// location String tempDir = AppBeans.get(Configuration.class).getConfig(GlobalConfig.class).getTempDir();