@@ -0,0 +1,348 @@
+package cn.shiyanjun.platform.api.utils;%0A%0Aimport cn.shiyanjun.platform.api.LifecycleAware;%0A%0Apublic class ComponentUtils %7B%0A%0A%09public static void stopAllQuietly(LifecycleAware... components) %7B%0A%09%09if(components != null) %7B%0A%09%09%09for(LifecycleAware c : components) %7B%0A%09%09%09%09try %7B%0A%09%09%09%09%09c.stop();%0A%09%09%09%09%7D catch (Exception e) %7B%0A%09%09%09%09%09// ignore it%0A%09%09%09%09%7D%0A%09%09%09%7D%0A%09%09%7D%0A%09%7D%0A%7D%0A

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