public < T > T populate ( String prefix , Class < T > clazz , Set < Class > resolvedConfigs ) { checkConfigurationClass ( clazz ) ; Map < Method , PropertyInfo > properties = resolve ( prefix , clazz . getMethods ( ) , resolvedConfigs ) ; //noinspection unchecked return ( T ) Proxy . newProxyInstance ( classLoader , new Class [ ] { clazz } , new PropertiesProxy ( properties ) ) ; }
Creates a proxy instance of given configuration .