package org.jvnet.glassfish.comms.deployment.backend;

import java.util.logging.Logger;

import com.sun.enterprise.deployment.interfaces.pluggable.ArchiveDescriptor;
import com.sun.enterprise.deployment.interfaces.pluggable.ArchiveLoader;
import com.sun.enterprise.server.WebArchiveLoader;



/**
 * <p>This class is the loader class for SIP Application Routers
 *   
 * An instance of this class is registered with the ExtensionModuleDeployer for 
 * the module Type that represents Application Routers. The ExtensionModuleLoader 
 * retrives an instance of this class from the ExtensionModuleDeployer and calls
 * the load/unload methods. </p>
 *  
 * @author yvo.bogers@ericsson.com
 */
public class ArArchiveLoader implements ArchiveLoader {

	private static Logger theirLog = (Logger) Logger.getLogger("SipContainer");
	
	public boolean load(ArchiveDescriptor aDescriptor, boolean isEnableAction) 
		throws Exception {

//	     @param descriptor the descriptor object which contains all the
//	                      metadata information and with the module
//	                       classloader set on it
//	     @param isEnableAction describes if this is a module enable operation

		
		// TODO
		// 
		
		theirLog.finest("----- load ----");
		
		
		return true;
	}

	public boolean unload(ArchiveDescriptor aDescriptor, boolean isDisableAction) 
		throws Exception {
		
		
		theirLog.finest("----- unload ----");
		
		return true;
	}
}
