本文整理了Java中com.sun.enterprise.config.serverbeans.Application.isLifecycleModule()
方法的一些代码示例,展示了Application.isLifecycleModule()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Application.isLifecycleModule()
方法的具体详情如下:
包路径:com.sun.enterprise.config.serverbeans.Application
类名称:Application
方法名:isLifecycleModule
暂无
代码示例来源: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);
内容来源于网络,如有侵权,请联系作者删除!