@Test(expected = RuntimeException.class) public void testDuplicate() { new ComposedConfigurationAccessor(new DuplicateConfiguration()).access(MyConfiguration.class); }
public static <T> T access(Configuration configuration, Environment environment, Class<T> clazz) { return getAccessor(configuration, environment).access(clazz); }
ComposedConfigurationAccessor { public static <T> T access(Configuration configuration, Environment environment, Class<T> clazz) { return getAccessor(configuration, environment).access(clazz); } }
ComposedConfigurationAccessor { public static <T> T access(Configuration configuration, Environment environment, Class<T> clazz) { return getAccessor(configuration, environment).access(clazz); } ComposedConfigurationAccessor(final Object configuration); }
ComposedConfigurationAccessor { public static <T> T access(Configuration configuration, Environment environment, Class<T> clazz) { return getAccessor(configuration, environment).access(clazz); } ComposedConfigurationAccessor(final Object configuration); static T access(Configuration configuration, Environment environment, Class<T> clazz); static ComposedConfigurationAccessor getAccessor(Configuration configuration, Environment environment); T access(Class<T> clazz); boolean has(Class<T> clazz); }
ComposedConfigurationAccessor { public static <T> T access(Configuration configuration, Environment environment, Class<T> clazz) { return getAccessor(configuration, environment).access(clazz); } ComposedConfigurationAccessor(final Object configuration); static T access(Configuration configuration, Environment environment, Class<T> clazz); static ComposedConfigurationAccessor getAccessor(Configuration configuration, Environment environment); T access(Class<T> clazz); boolean has(Class<T> clazz);  }