Search in sources :

Example 1 with EzyDestroyable

use of com.tvd12.ezyfox.util.EzyDestroyable in project ezyhttp by youngmonkeys.

the class SimpleApplicationContext method destroy.

@SuppressWarnings("rawtypes")
@Override
public void destroy() {
    List destroyableComponents = beanContext.getSingletonsOf(EzyDestroyable.class);
    for (Object component : destroyableComponents) {
        ((EzyDestroyable) component).destroy();
    }
    ComponentManager.getInstance().destroy();
}
Also used : EzyDestroyable(com.tvd12.ezyfox.util.EzyDestroyable) List(java.util.List)

Aggregations

EzyDestroyable (com.tvd12.ezyfox.util.EzyDestroyable)1 List (java.util.List)1