@ Override public void postInitModule ( ) throws ModuleInitializationException { ManagementDelegate delegate = serverInterface . getManagementDelegate ( ) ; if ( delegate == null ) { throw new ModuleInitializationException ( "Can't get a ManagementDelegate from Server.getModule()" , getRole ( ) ) ; } worker . setManagementDelegate ( delegate ) ; }
Get the ManagementDelegate module and pass it to the worker .