@Test public void testArray() { ComposedConfigurationAccessor accessor = new ComposedConfigurationAccessor(new ConfigurationWithArray()); MyConfiguration[] configurations = accessor.access(MyConfiguration[].class); Assert.assertNotNull(configurations); Assert.assertEquals(5, configurations.length); }
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);  }