package open.dolphin.delegater.local;
import open.dolphin.delegater.DocumentDelegater;
import javax.naming.NamingException;
import open.dolphin.service.IKarteService;
import open.dolphin.project.GlobalConstants;
import open.dolphin.service.local.LocalKarteService;
import org.jdesktop.application.ApplicationContext;

/**
 *
 * @author oda
 */
public class LocalDocumentDelegater extends DocumentDelegater {

    @Override
    protected IKarteService getService() throws NamingException {
        ApplicationContext appCtx = GlobalConstants.getApplicationContext();
        return new LocalKarteService(appCtx.getLocalStorage().getDirectory());
    }
}
