public void init ( ) { log . debug ( "Init scope: {} parent: {}" , name , parent ) ; if ( hasParent ( ) ) { if ( ! parent . hasChildScope ( name ) ) { if ( parent . addChildScope ( this ) ) { log . debug ( "Scope added to parent" ) ; } else { log . warn ( "Scope not added to parent" ) ; //throw new ScopeException("Scope not added to parent"); return ; } } else { throw new ScopeException ( "Scope already exists in parent" ) ; } } else { log . debug ( "Scope has no parent" ) ; } if ( autoStart ) { start ( ) ; } }
Initialization actions start if autostart is set to true .