public void startImpl ( Result < I > result ) { DeployFactory2 < I > builder = builder ( ) ; if ( builder == null ) { result . ok ( null ) ; return ; } if ( ! _lifecycle . toStarting ( ) ) { result . ok ( _instance ) ; return ; } I deployInstance = null ; boolean isActive = false ; try { deployInstance = builder . get ( ) ; _instance = deployInstance ; isActive = true ; result . ok ( deployInstance ) ; } catch ( ConfigException e ) { log . log ( Level . FINEST , e . toString ( ) , e ) ; log . log ( Level . FINE , e . toString ( ) , e ) ; result . fail ( e ) ; } catch ( Throwable e ) { log . log ( Level . FINEST , e . toString ( ) , e ) ; log . log ( Level . FINE , e . toString ( ) , e ) ; result . fail ( e ) ; } finally { if ( isActive ) { _lifecycle . toActive ( ) ; } else { _lifecycle . toError ( ) ; } } }
Starts the entry .