/** * Returns the Application corresponding to the app specified in the * command arguments. * * @return Application object for the app */ private Application application() { final Application result = apps.getModule(Application.class, appName()); return result; }
/** * return availability-enabled for the deployed j2ee application * from domain.xml based on the app name * return inheritedValue if module not found or j2ee application * availability is not defined * * @param appName * @param inheritedValue */ private boolean getJ2eeApplicationAvailability(String appName, boolean inheritedValue) { boolean result = false; J2eeApplication j2eeApp = (applications == null) ? null : applications.getModule(J2eeApplication.class, appName); if (j2eeApp != null) { result = Boolean.valueOf(j2eeApp.getAvailabilityEnabled()); } return result; }
/** * return availability-enabled for the deployed ejb module * from domain.xml based on the name * return inheritedValue if module not found or module availability * is not defined * * @param name * @param inheritedValue */ private boolean getEjbModuleAvailability(String name, boolean inheritedValue) { boolean result = false; EjbModule ejbModule = (applications == null) ? null : applications.getModule(EjbModule.class, name); if (ejbModule != null) { result = Boolean.valueOf(ejbModule.getAvailabilityEnabled()); } return result; }
Application app = apps.getModule(Application.class, name);
appsBean.getModule( com.sun.enterprise.config.serverbeans.Application.class, appID);
Application app = apps.getModule(Application.class, name); if (app.isLifecycleModule()){ throw new IllegalArgumentException(localStrings.getLocalString("lifecyclemodule_withsamename_exists", "Lifecycle module with same name {0} already exists, please pick a different name for the application. ", name));
Application application = apps.getModule(Application.class, appName);
new ApplicationConfigInfo(apps.getModule(Application.class, name)); Properties undeployProps = handleRedeploy(name, report, context); if (enabled == null) {
new ApplicationConfigInfo(apps.getModule(Application.class, name)); Properties undeployProps = handleRedeploy(name, report); if (enabled == null) {