本文整理了Java中com.sun.enterprise.config.serverbeans.Application.setEnabled()
方法的一些代码示例,展示了Application.setEnabled()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Application.setEnabled()
方法的具体详情如下:
包路径:com.sun.enterprise.config.serverbeans.Application
类名称:Application
方法名:setEnabled
[英]Sets the value of the enabled property.
[中]设置已启用属性的值。
代码示例来源:origin: org.glassfish.main.core/kernel
public Object run(ConfigBeanProxy... configBeanProxies) throws PropertyVetoException, TransactionFailure {
for (ConfigBeanProxy proxy : configBeanProxies) {
Application app = (Application) proxy;
app.setEnabled(Boolean.FALSE.toString());
}
return null;
}
}, enabledApps.toArray(new Application[enabledApps.size()]));
代码示例来源:origin: org.glassfish.main.core/kernel
public Object run(Application param) throws PropertyVetoException, TransactionFailure {
if (!Boolean.parseBoolean(param.getEnabled())) {
param.setEnabled(Boolean.TRUE.toString());
}
return null;
}
}, app);
代码示例来源:origin: fujitsu/launcher
app.setEnabled(String.valueOf(true));
if (appProps.getProperty(ServerTags.LOCATION) != null) {
app.setLocation(appProps.getProperty(
String enabledAttr = previousEnabledAttributes.getProperty(DeploymentUtils.DOMAIN_TARGET_NAME);
if (enabledAttr != null) {
app.setEnabled(enabledAttr);
代码示例来源:origin: org.glassfish.main.core/kernel
app.setEnabled(String.valueOf(true));
if (appProps.getProperty(ServerTags.LOCATION) != null) {
app.setLocation(appProps.getProperty(
String enabledAttr = previousEnabledAttributes.getProperty(DeploymentUtils.DOMAIN_TARGET_NAME);
if (enabledAttr != null) {
app.setEnabled(enabledAttr);
代码示例来源:origin: org.glassfish.main.core/kernel
sa.getModules().add(app);
app.setName(AdminConsoleAdapter.ADMIN_APP_NAME);
app.setEnabled(Boolean.TRUE.toString());
app.setObjectType("system-admin"); //TODO
app.setDirectoryDeployed("true");
代码示例来源:origin: fujitsu/launcher
Application app = dmn.getApplications().getApplication(appName);
ConfigBeanProxy app_w = t.enroll(app);
((Application)app_w).setEnabled(String.valueOf(enabled));
代码示例来源:origin: org.glassfish.main.core/kernel
Application app = dmn.getApplications().getApplication(appName);
ConfigBeanProxy app_w = t.enroll(app);
((Application)app_w).setEnabled(String.valueOf(enabled));
代码示例来源:origin: org.glassfish.admin/config-api
app.setObjectType(connectorModule.getObjectType());
app.setDescription(connectorModule.getDescription());
app.setEnabled(connectorModule.getEnabled());
app.setDirectoryDeployed(
connectorModule.getDirectoryDeployed());
app.setObjectType(ejbModule.getObjectType());
app.setDescription(ejbModule.getDescription());
app.setEnabled(ejbModule.getEnabled());
app.setDirectoryDeployed(
ejbModule.getDirectoryDeployed());
app.setObjectType(webModule.getObjectType());
app.setDescription(webModule.getDescription());
app.setEnabled(webModule.getEnabled());
app.setDirectoryDeployed(
webModule.getDirectoryDeployed());
app.setObjectType("user");
app.setDescription(appclientModule.getDescription());
app.setEnabled("true");
app.setDirectoryDeployed(
appclientModule.getDirectoryDeployed());
app.setObjectType(j2eeApp.getObjectType());
app.setDescription(j2eeApp.getDescription());
app.setEnabled(j2eeApp.getEnabled());
app.setDirectoryDeployed(
j2eeApp.getDirectoryDeployed());
内容来源于网络,如有侵权,请联系作者删除!