/wro4j-core/src/main/java/ro/isdc/wro/manager/callback/LifecycleCallbackRegistry.java
callbacks = initCallbacks( ) ; if ( callbacks == null) {List<LifecycleCallback> callbacks = map.get( key) ;
List<LifecycleCallback> callbacks = map.get ( key ) ; if ( callbacks == null ) { callbacks = initCallbacks ( ) ;
private final Map<String, List<LifecycleCallback>> map = new ConcurrentHashMap<String, List<LifecycleCallback>>(); public void registerCallback(final ObjectFactory<LifecycleCallback> callbackFactory) { callbackFactoryList.add(callbackFactory); } private List<LifecycleCallback> getCallbacks() { final String key = Context.getCorrelationId(); <extra_id_0> map.put(key, callbacks); } return callbacks; } protected List<LifecycleCallback> initCallbacks() { final List<LifecycleCallback> callbacks = new ArrayList<LifecycleCallback>();