public Subscription registerController ( Class < ? > controllerClass , String controllerId , ModelProvider modelProvider ) { Assert . requireNonNull ( controllerClass , "controllerClass" ) ; Assert . requireNonBlank ( controllerId , "controllerId" ) ; Assert . requireNonNull ( modelProvider , "modelProvider" ) ; DolphinControllerInfoMBean mBean = new DolphinControllerInfo ( dolphinContextId , controllerClass , controllerId , modelProvider ) ; return MBeanRegistry . getInstance ( ) . register ( mBean , new MBeanDescription ( "com.canoo.dolphin" , controllerClass . getSimpleName ( ) , "controller" ) ) ; }
Register a new Dolphin Platform controller as a MBean