本文整理了Java中org.glassfish.internal.deployment.Deployment.isRegistered()
方法的一些代码示例,展示了Deployment.isRegistered()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Deployment.isRegistered()
方法的具体详情如下:
包路径:org.glassfish.internal.deployment.Deployment
类名称:Deployment
方法名:isRegistered
暂无
代码示例来源:origin: org.glassfish.deployment/deployment-admin
private void validateTarget(String target, String name) {
List<String> referencedTargets = domain.getAllReferencedTargetsForApplication(name);
if (referencedTargets.isEmpty()) {
if (deployment.isRegistered(name)) {
throw new IllegalArgumentException(localStrings.getLocalString("lifecycle.use.create_app_ref_2", "Lifecycle module {0} is already created in this domain. Please use create application ref to create application reference on target {1}", name, target));
}
} else {
if (referencedTargets.contains(target)) {
throw new IllegalArgumentException(localStrings.getLocalString("lifecycle.alreadyreg", "Lifecycle module {0} is already created on this target {1}", name, target));
} else {
throw new IllegalArgumentException(localStrings.getLocalString("lifecycle.use.create_app_ref", "Lifecycle module {0} is already referenced by other target(s). Please use create application ref to create application reference on target {1}", name, target));
}
}
}
}
代码示例来源:origin: org.glassfish.ejb/ejb-container
private void deployEJBTimerService(String target) {
synchronized (lock) {
Deployment deployment = habitat.getByContract(Deployment.class);
boolean isRegistered = deployment.isRegistered(EjbContainerUtil.TIMER_SERVICE_APP_NAME);
代码示例来源:origin: org.glassfish.main.ejb/ejb-full-container
boolean available = _ejbContainerUtil.getDeployment().isRegistered(TIMER_SERVICE_APP_NAME);
if (available) {
logger.log (Level.WARNING, "EJBTimerService had been explicitly deployed.");
代码示例来源:origin: org.glassfish.deployment/deployment-admin
if (!deployment.isRegistered(name)) {
report.setMessage(localStrings.getLocalString("application.notreg","Application {0} not registered", name));
report.setActionExitCode(ActionReport.ExitCode.FAILURE);
代码示例来源:origin: org.glassfish.main.deployment/deployment-javaee-core
if (!deployment.isRegistered(applicationName)) {
report.setMessage(localStrings.getLocalString("application.notreg","Application {0} not registered", applicationName));
report.setActionExitCode(ActionReport.ExitCode.FAILURE);
代码示例来源:origin: org.glassfish.deployment/deployment-admin
if (!deployment.isRegistered(appName)) {
if (env.isDas()) {
代码示例来源:origin: org.glassfish.deployment/deployment-admin
if (!deployment.isRegistered(name)) {
report.setMessage(localStrings.getLocalString("application.notreg", "Application {0} not registered", name));
report.setActionExitCode(ActionReport.ExitCode.FAILURE);
代码示例来源:origin: fujitsu/launcher
boolean isRegistered = deployment.isRegistered(name);
isredeploy = isRegistered && force;
return true;
代码示例来源:origin: org.glassfish.deployment/deployment-admin
boolean isRegistered = deployment.isRegistered(name);
isredeploy = isRegistered && force;
deployment.validateDeploymentTarget(target, name, isredeploy);
代码示例来源:origin: org.glassfish.deployment/deployment-admin
final Logger logger = context.getLogger();
if (!deployment.isRegistered(name)) {
report.setMessage(localStrings.getLocalString("lifecycle.notreg","Lifecycle module {0} not registered", name));
report.setActionExitCode(ActionReport.ExitCode.FAILURE);
代码示例来源:origin: org.glassfish.deployment/deployment-admin
final Logger logger = context.getLogger();
if (!deployment.isRegistered(name())) {
report.setMessage(localStrings.getLocalString("application.notreg","Application {0} not registered", name()));
report.setActionExitCode(ActionReport.ExitCode.FAILURE);
内容来源于网络,如有侵权,请联系作者删除!