private void sendLifecycleEvent(final LifecycleEvent event) {

		// instantiate and call lifecycle callbacks from configuration file
		final String listeners = Settings.LifecycleListeners.getValue();
		if (listeners != null) {

			final String[] listenerClasses = listeners.split("[\\s ,;]+");
			for (String listenerClass : listenerClasses) {

				if (StringUtils.isNotBlank(listenerClass)) {

					try {
						final HttpServiceLifecycleListener listener = (HttpServiceLifecycleListener) Class.forName(listenerClass).newInstance();
						switch (event) {

							case Started:
								listener.serverStarted();
								break;

							case Stopped:
								listener.serverStopped();
								break;
						}

					} catch (InstantiationException | IllegalAccessException | ClassNotFoundException ex) {

						logger.error("Unable to send lifecycle event to listener " + listenerClass, ex);
					}
				}
			}
		}
	}
private void sendLifecycleEvent ( final LifecycleEvent event ) { final String listeners = Settings . LifecycleListeners . getValue ( ) ; if ( listeners != null ) { final String [ ] listenerClasses = listeners . split ( "[\\s ,;]+" ) ; for ( String listenerClass : listenerClasses ) { if ( StringUtils . isNotBlank ( listenerClass ) ) { try { final HttpServiceLifecycleListener listener = ( HttpServiceLifecycleListener ) Class . forName ( listenerClass ) . newInstance ( ) ; switch ( event ) { case Started : listener . serverStarted ( ) ; break ; case Stopped : listener . serverStopped ( ) ; break ; } } catch ( InstantiationException | IllegalAccessException | ClassNotFoundException ex ) { logger . error ( "Unable to send lifecycle event to listener " + listenerClass , ex ) ; } } } } }
----- private methods -----