protected final void addPropertyAlias ( String alias , Class < ? > type , String name ) { Map < String , Property > typeMap = properties . get ( type ) ; if ( typeMap == null ) { typeMap = new HashMap < String , Property > ( ) ; properties . put ( type , typeMap ) ; } try { typeMap . put ( alias , propertyUtils . getProperty ( type , name ) ) ; } catch ( IntrospectionException e ) { throw new RuntimeException ( e ) ; } }
Adds an alias for a Javabean property name on a particular type . The values of YAML keys with the alias name will be mapped to the Javabean property .