1 28 29 30 package com.caucho.management.j2ee; 31 32 import com.caucho.loader.EnvironmentLocal; 33 import com.caucho.server.e_app.EarDeployController; 34 35 38 public class J2EEApplication extends J2EEDeployedObject { 39 private static EnvironmentLocal<J2EEApplication> _j2eeApplicationLocal 40 = new EnvironmentLocal<J2EEApplication>("caucho.jmx.j2ee.J2EEApplication"); 41 42 private final EarDeployController _earDeployController; 43 44 static J2EEApplication getLocal() 45 { 46 return _j2eeApplicationLocal.get(); 47 } 48 49 public J2EEApplication(EarDeployController earDeployController) 50 { 51 _earDeployController = earDeployController; 52 _j2eeApplicationLocal.set(this); 53 } 54 55 protected String getName() 56 { 57 String name = _earDeployController.getId(); 58 59 return name == null ? "default" : name; 60 } 61 62 protected boolean isJ2EEApplication() 63 { 64 return false; 65 } 66 67 public String getDeploymentDescriptor() 68 { 69 return ""; 71 } 72 73 77 public String []getModules() 78 { 79 return queryObjectNamesSet(new String [][] { 80 { "j2eeType", "AppClientModule" }, 81 { "j2eeType", "EJBModule" }, 82 { "j2eeType", "WebModule" }, 83 { "j2eeType", "ResourceAdapterModule"} 84 }); 85 } 86 87 } 88 | Popular Tags |