synchronized void stopReal() { status = ServiceStatus.STOPPING; try { if ( service instanceof Stoppable ) { ( (Stoppable) service ).stop(); } } catch (Exception e) { log.stopServiceFailed( serviceClass, e ); } finally { status = ServiceStatus.STOPPED; } }
synchronized void stopReal() { status = ServiceStatus.STOPPING; try { if ( service instanceof Stoppable ) { ( (Stoppable) service ).stop(); } } catch (Exception e) { log.stopServiceFailed( serviceClass, e ); } finally { status = ServiceStatus.STOPPED; } }