private B newProcessBuilder ( Class [ ] param_types , Object [ ] params ) { if ( process_builder_class != null ) { try { Constructor < B > constructor = process_builder_class . getDeclaredConstructor ( param_types ) ; return constructor . newInstance ( params ) ; } catch ( Exception e ) { throw new QueujException ( e ) ; } } if ( parent_queue != null ) return ( B ) parent_queue . newProcessBuilder ( param_types , params ) ; // else throw new QueujException ( "No ProcessBuilder exists for Queue" ) ; }
Private method to instantiate the Queues ProcessBuilder . Will ask the parent Queue to instantiate its ProcessBuilder if this Queue doesn t have one .