/** * Copyright 2007-2010 非也 * All rights reserved. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation。 * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see http://www.gnu.org/licenses. * */ package org.fireflow.engine.modules.persistence; import java.io.InputStream; import java.util.List; import java.util.Map; import org.fireflow.engine.entity.repository.ResourceDescriptor; import org.fireflow.engine.entity.repository.ResourceDescriptorProperty; import org.fireflow.engine.entity.repository.ResourceRepository; import org.fireflow.model.InvalidModelException; import org.fireflow.model.io.DeserializerException; /** * * @deprecated * @author 非也 * @version 2.0 */ public interface ResourcePersister extends Persister{ /** * 将一个服务定义文件保存到存储库中 * * @param serviceFileInput * @return */ public List<ResourceDescriptor> persistResourceFileToRepository( InputStream resourceFileInput, Map<ResourceDescriptorProperty, Object> properties)throws DeserializerException,InvalidModelException; /** * 根据文件名将ResourceRepository读取出来 * @param resourceFileName * @return */ public ResourceRepository findResourceRepositoryByFileName(String resourceFileName)throws DeserializerException; }