1 23 package com.sun.enterprise.server; 24 25 import javax.management.MBeanException ; 26 import com.sun.enterprise.instance.WebModulesManager; 27 import com.sun.enterprise.deployment.Descriptor; 28 import java.net.URL ; 29 import java.util.jar.Manifest ; 30 import java.util.logging.Level ; 31 import java.util.logging.Logger ; 32 import com.sun.logging.LogDomains; 33 import com.sun.enterprise.config.ConfigException; 34 import com.sun.enterprise.server.event.ApplicationEvent; 35 36 43 public class DummyWebModuleLoader extends AbstractLoader { 44 45 static Logger _logger=LogDomains.getLogger(LogDomains.LOADER_LOGGER); 46 47 51 DummyWebModuleLoader(String id, ClassLoader loader, WebModulesManager manager) { 52 super(id, loader, manager); 53 try { 54 this.application = manager.getDescriptor(id, manager.getLocation(id)); 55 } catch (ConfigException confEx) { 56 _logger.log(Level.SEVERE,"loader.configexception", confEx); 57 } 58 } 59 60 boolean load(boolean jsr77) { 62 notifyAppEvent(ApplicationEvent.BEFORE_APPLICATION_LOAD); 63 loadWebserviceEndpoints(jsr77); 64 return true; 65 } 66 67 boolean unload(boolean jsr77) { 68 unloadWebserviceEndpoints(jsr77); 69 return true; 70 } 71 72 void createRootMBean () throws MBeanException { 73 } 74 75 void deleteRootMBean () throws MBeanException { 76 } 77 78 void createLeafMBeans () throws MBeanException { 79 } 80 81 void deleteLeafMBeans () throws MBeanException { 82 } 83 84 void createLeafMBean (Descriptor descriptor) throws MBeanException { 85 } 86 87 void deleteLeafMBean (Descriptor descriptor) throws MBeanException { 88 } 89 90 void deleteLeafAndRootMBeans () throws MBeanException { 91 } 92 93 void setState(int state) throws MBeanException { 94 } 95 } 96 | Popular Tags |