package cn.shiyanjun.platform.api.utils;

import cn.shiyanjun.platform.api.LifecycleAware;

public class ComponentUtils {

	public static void stopAllQuietly(LifecycleAware... components) {
		if(components != null) {
			for(LifecycleAware c : components) {
				try {
					c.stop();
				} catch (Exception e) {
					// ignore it
				}
			}
		}
	}
}

Add utility class to stop component implementing 'LifecycleAware' quietly.
Add utility class to stop component implementing 'LifecycleAware'
quietly.