public void addAuxHandler ( Object handler , String prefix ) { if ( handler == null ) { throw new NullPointerException ( ) ; } auxHandlers . put ( prefix , handler ) ; allHandlers . add ( handler ) ; addDeclaredMethods ( handler , prefix ) ; inputConverter . addDeclaredConverters ( handler ) ; outputConverter . addDeclaredConverters ( handler ) ; if ( handler instanceof ShellDependent ) { ( ( ShellDependent ) handler ) . cliSetShell ( this ) ; } }
This method is very similar to addMainHandler except ShellFactory will pass all handlers registered with this method to all this shell s subshells .