@ -49,11 +49,6 @@ public final class PropertyElf
return ;
return ;
}
}
HikariConfig config = null ;
if ( target instanceof HikariConfig ) {
config = ( HikariConfig ) target ;
}
List < Method > methods = Arrays . asList ( target . getClass ( ) . getMethods ( ) ) ;
List < Method > methods = Arrays . asList ( target . getClass ( ) . getMethods ( ) ) ;
Enumeration < ? > propertyNames = properties . propertyNames ( ) ;
Enumeration < ? > propertyNames = properties . propertyNames ( ) ;
while ( propertyNames . hasMoreElements ( ) ) {
while ( propertyNames . hasMoreElements ( ) ) {
@ -64,8 +59,8 @@ public final class PropertyElf
propValue = properties . get ( key ) ;
propValue = properties . get ( key ) ;
}
}
if ( config ! = null & & propName . startsWith ( "dataSource." ) ) {
if ( target instanceof HikariConfig & & propName . startsWith ( "dataSource." ) ) {
config . addDataSourceProperty ( propName . substring ( "dataSource." . length ( ) ) , propValue ) ;
( ( HikariConfig ) target ) . addDataSourceProperty ( propName . substring ( "dataSource." . length ( ) ) , propValue ) ;
}
}
else {
else {
setProperty ( target , propName , propValue , methods ) ;
setProperty ( target , propName , propValue , methods ) ;