private void initEmbedded ( String [ ] args , String [ ] services ) { if ( m_bInitialized ) { m_logger . warn ( "initEmbedded: Already initialized -- ignoring" ) ; return ; } m_logger . info ( "Initializing embedded mode" ) ; initConfig ( args ) ; initEmbeddedServices ( services ) ; RESTService . instance ( ) . registerCommands ( CMD_CLASSES ) ; m_bInitialized = true ; }
Initialize server configuration and given + required services for embedded running .