001// License: GPL. For details, see LICENSE file. 002package org.openstreetmap.josm.spi.lifecycle; 003 004/** 005 * Initialization task listener. 006 * @since 14125 007 */ 008public interface InitStatusListener { 009 010 /** 011 * Called when an initialization task updates its status. 012 * @param event task name 013 * @return new status 014 */ 015 Object updateStatus(String event); 016 017 /** 018 * Called when an initialization task completes. 019 * @param status final status 020 */ 021 void finish(Object status); 022}