@ Deprecated public < T > Class < T > getPropertyAsClass ( String key , Class < T > targetType ) { Optional < String > property = propertyResolver . getProperty ( NameUtils . hyphenate ( key ) , String . class ) ; if ( property . isPresent ( ) ) { Optional < Class > aClass = ClassUtils . forName ( property . get ( ) , Thread . currentThread ( ) . getContextClassLoader ( ) ) ; if ( aClass . isPresent ( ) ) { //noinspection unchecked return aClass . get ( ) ; } } return null ; }
Return the property value converted to a class loaded by the current thread context class loader .