Application.isLifecycleModule
Code IndexAdd Codota to your IDE (free)

Best Java code snippets using com.sun.enterprise.config.serverbeans.Application.isLifecycleModule (Showing top 10 results out of 315)

  • Common ways to obtain Application
private void myMethod () {
Application a =
  • Applications applications;String moduleID;applications.getApplication(moduleID)
  • Domain domain;String moduleID;domain.getApplications().getApplication(moduleID)
  • DeploymentContext deploymentContext;String metaDataKey;deploymentContext.getTransientAppMetaData(metaDataKey, Application.class)
  • Smart code suggestions by Codota
}
origin: fujitsu/launcher

public void validateUndeploymentTarget(String target, String name) {
  List<String> referencedTargets = domain.getAllReferencedTargetsForApplication(name);
  if (referencedTargets.size() > 1) {
    Application app = applications.getApplication(name);
    if (!DeploymentUtils.isDomainTarget(target)) {
      if (app.isLifecycleModule()) {  
        throw new IllegalArgumentException(localStrings.getLocalString("delete_lifecycle_on_multiple_targets", "Lifecycle module {0} is referenced by more than one targets. Please remove other references before attempting delete operation.", name)); 
      } else {
        throw new IllegalArgumentException(localStrings.getLocalString("undeploy_on_multiple_targets", "Application {0} is referenced by more than one targets. Please remove other references or specify all targets (or domain target if using asadmin command line) before attempting undeploy operation.", name)); 
      }
    }
  }
}
origin: org.glassfish.main.core/kernel

public void validateUndeploymentTarget(String target, String name) {
  List<String> referencedTargets = domain.getAllReferencedTargetsForApplication(name);
  if (referencedTargets.size() > 1) {
    Application app = applications.getApplication(name);
    if (!DeploymentUtils.isDomainTarget(target)) {
      if (app.isLifecycleModule()) {  
        throw new IllegalArgumentException(localStrings.getLocalString("delete_lifecycle_on_multiple_targets", "Lifecycle module {0} is referenced by more than one targets. Please remove other references before attempting delete operation.", name)); 
      } else {
        throw new IllegalArgumentException(localStrings.getLocalString("undeploy_on_multiple_targets", "Application {0} is referenced by more than one targets. Please remove other references or specify all targets (or domain target if using asadmin command line) before attempting undeploy operation.", name)); 
      }
    }
  }
}
origin: org.glassfish.main.core/kernel

private void handleOtherAppConfigChanges(Object parent, String appName) {
  Application application = applications.getApplication(appName);
  if (application.isLifecycleModule()) {
    return;
  }
  // reload the application for other application related 
  // config changes if the application is in enabled state
  if (isCurrentInstanceMatchingTarget(parent) && 
    deployment.isAppEnabled(application)) {
    disableApplication(appName); 
    enableApplication(appName);
  }
}
origin: org.glassfish.main.core/kernel

private void handleAppEnableChange(Object parent, 
  String appName, boolean enabled) {
  Application application = applications.getApplication(appName);
  if (application.isLifecycleModule()) {
    return;
  }
  if (enabled) {
    if (isCurrentInstanceMatchingTarget(parent)) {
      enableApplication(appName);
    }
  } else {
    if (isCurrentInstanceMatchingTarget(parent)) {
      disableApplication(appName);
    }
  }
}
origin: org.glassfish.deployment/deployment-admin

if (!app.isLifecycleModule()) {
  if (type==null || isApplicationOfThisType(app, type)) {
    String[] currentRow;
origin: fujitsu/launcher

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)); 
origin: org.glassfish.main.deployment/deployment-javaee-core

if (application.isLifecycleModule()) {
  if (!terse) {
    part.setMessage(localStrings.getLocalString("listsubcomponents.no.elements.to.list", "Nothing to List."));
origin: org.glassfish.deployment/deployment-admin

  public void execute(AdminCommandContext context) {
    
    ActionReport report = context.getActionReport();
    ActionReport.MessagePart part = report.getTopMessagePart();

    boolean found = false;
    for (Application app : domain.getApplicationsInTarget(target)) {
      if (app.isLifecycleModule()) {
        ActionReport.MessagePart childPart = part.addChild();
        childPart.setMessage(app.getName());
        found = true;
      }
    }

    if (!found && !terse) {
      part.setMessage(localStrings.getLocalString("list.components.no.elements.to.list", "Nothing to List."));
    }

    report.setActionExitCode(ActionReport.ExitCode.SUCCESS);
  }
}
origin: org.glassfish.deployment/deployment-admin

if (app.isLifecycleModule()) {
  handleLifecycleModule(context, t);
  return;
origin: org.glassfish.deployment/deployment-admin

if (application.isLifecycleModule()) {
  try  {
    deployment.unregisterAppFromDomainXML(appName, target, true);
com.sun.enterprise.config.serverbeansApplicationisLifecycleModule

Popular methods of Application

  • getName
  • getModule
  • getLocation
    Gets the value of the location property.
  • createChild
  • getDeployProperties
  • getEnabled
    Gets the value of the enabled property.
  • isStandaloneModule
  • containsSnifferType
  • getDirectoryDeployed
    Gets the value of the directoryDeployed property.
  • getEngine
    Gets the value of the engine property. This accessor method returns a reference to the live list,
  • getProperty
  • getContextRoot
    Gets the value of the contextRoot property.
  • getProperty,
  • getContextRoot,
  • getLibraries,
  • getResources,
  • setLocation,
  • application,
  • getDeployParameters,
  • getModulePropertiesMap,
  • getObjectType

Popular in Java

  • Making http requests using okhttp
  • setContentView (Activity)
  • setRequestProperty (URLConnection)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d

For IntelliJ IDEA,
Android Studio or Eclipse

  • Search for JavaScript code betaCodota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutBlogContact Us
  • Plugin user guideTerms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)