00001 /* 00002 * JOnAS: Java(TM) Open Application Server 00003 * Copyright (C) 1999 Bull S.A. 00004 * Contact: jonas-team@objectweb.org 00005 * 00006 * This library is free software; you can redistribute it and/or 00007 * modify it under the terms of the GNU Lesser General Public 00008 * License as published by the Free Software Foundation; either 00009 * version 2.1 of the License, or any later version. 00010 * 00011 * This library is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 * Lesser General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU Lesser General Public 00017 * License along with this library; if not, write to the Free Software 00018 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 00019 * USA 00020 * 00021 * Initial developer(s): ____________________________________. 00022 * Contributor(s): 00023 * JOnAS 2.4 Sebastien Chassande-Barrioz (sebastien.chassande@inrialpes.fr) 00024 * JOnAS 3.0 Eric Hardesty (Eric.Hardesty@bull.com) 00025 * 00026 * -------------------------------------------------------------------------- 00027 * $Id: ResourceService.java,v 1.13 2004/10/29 23:33:37 ehardesty Exp $ 00028 * -------------------------------------------------------------------------- 00029 */ 00030 package org.objectweb.jonas.resource; 00031 00032 import java.net.URL; 00033 00034 import javax.naming.Context; 00035 00036 import org.objectweb.jonas.service.Service; 00037 00048 public interface ResourceService extends Service { 00049 00062 String createResourceAdapter(Context ctx) throws Exception; 00063 00070 String deployRar(String fileName) throws Exception; 00071 00084 void deployRars(Context ctx) throws ResourceServiceException; 00085 00090 String getRarsDirectory(); 00091 00097 Boolean isRarDeployed(String fileName); 00098 00105 boolean isRarDeployedByUnpackName(String unpackName); 00106 00112 void unDeployRar(String fileName) throws Exception; 00113 00121 void unDeployRars(URL[] urls, URL earUrl); 00122 00123 } 00124 00125