private void fireWorkContextSetupFailed ( Object workContext ) { if ( workContext != null && workContext instanceof WorkContextLifecycleListener ) { if ( trace ) log . tracef ( "WorkContextSetupFailed(%s) for %s" , workContext , this ) ; WorkContextLifecycleListener listener = ( WorkContextLifecycleListener ) workContext ; listener . contextSetupFailed ( WorkContextErrorCodes . CONTEXT_SETUP_FAILED ) ; } }
Calls listener if setup failed