private Map < String , IEsjpSelect > getEsjpSelect ( final List < Instance > _instances ) throws Exception { final Map < String , IEsjpSelect > ret = new HashMap <> ( ) ; if ( ! _instances . isEmpty ( ) ) { for ( final Entry < String , AbstractSelect > entry : getAlias2Selects ( ) . entrySet ( ) ) { if ( entry . getValue ( ) instanceof ExecSelect ) { final Class < ? > clazz = Class . forName ( entry . getValue ( ) . getSelect ( ) , false , EFapsClassLoader . getInstance ( ) ) ; final IEsjpSelect esjp = ( IEsjpSelect ) clazz . newInstance ( ) ; final List < String > parameters = ( ( ExecSelect ) entry . getValue ( ) ) . getParameters ( ) ; if ( parameters . isEmpty ( ) ) { esjp . initialize ( _instances ) ; } else { esjp . initialize ( _instances , parameters . toArray ( new String [ parameters . size ( ) ] ) ) ; } ret . put ( entry . getKey ( ) , esjp ) ; } } } return ret ; }
Gets the esjp select .