本文整理汇总了Java中org.eclipse.wst.server.core.IModule.getId方法的典型用法代码示例。如果您正苦于以下问题:Java IModule.getId方法的具体用法?Java IModule.getId怎么用?Java IModule.getId使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eclipse.wst.server.core.IModule
的用法示例。
在下文中一共展示了IModule.getId方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: moduleListToString
import org.eclipse.wst.server.core.IModule; //导入方法依赖的package包/类
/** Convert an array of modules to a String for debugging.*/
private static String moduleListToString(IModule[] module) {
String moduleStr = "{ ";
if(module != null) {
for(int x = 0; x < module.length; x++) {
IModule currModule = module[x];
if(currModule == null) { continue; }
moduleStr += currModule.getName()+" ["+currModule.getId()+"/"+(currModule.getModuleType() != null ? currModule.getModuleType().getId() : "") +"]";
if(x+1 < module.length) {
moduleStr += ", ";
}
}
}
moduleStr = moduleStr.trim() + "}";
return moduleStr;
}
示例2: CloudFoundryApplicationModule
import org.eclipse.wst.server.core.IModule; //导入方法依赖的package包/类
protected CloudFoundryApplicationModule(IModule module, String deployedApplicationName, String localName,
IServer server) {
super(localName, localName, MODULE_ID, MODULE_VERSION, null);
Assert.isNotNull(deployedApplicationName);
Assert.isNotNull(localName);
Assert.isNotNull(server);
this.localModuleId = (module != null) ? module.getId() : CFAM_MODULE_ID;
this.server = server;
setDeployedApplicationName(deployedApplicationName);
CloudFoundryPlugin.trace("Created ApplicationModule " + deployedApplicationName + " for module " + module); //$NON-NLS-1$ //$NON-NLS-2$
}
示例3: convertPublishModuleToString
import org.eclipse.wst.server.core.IModule; //导入方法依赖的package包/类
/** Convert a call to publishModule(...) to a String, for debugging */
private static String convertPublishModuleToString(int deltaKind, IModule[] module) {
try {
String deltaKindStr;
if(deltaKind == REMOVED) {
deltaKindStr = "REMOVED";
} else if(deltaKind == ADDED) {
deltaKindStr = "ADDED";
} else if(deltaKind == CHANGED) {
deltaKindStr = "CHANGED";
} else if(deltaKind == NO_CHANGE) {
deltaKindStr = "NO_CHANGE";
} else {
deltaKindStr = "Unknown";
}
String moduleStr = "{ ";
if(module != null) {
for(int x = 0; x < module.length; x++) {
IModule currModule = module[x];
if(currModule == null) { continue; }
moduleStr += currModule.getName()+" ["+currModule.getId()+"/"+(currModule.getModuleType() != null ? currModule.getModuleType().getId() : "") +"]";
if(x+1 < module.length) {
moduleStr += ", ";
}
}
}
moduleStr = moduleStr.trim() + "}";
return "CloudFoundryServerBehaviour.publishModule(...): "+deltaKindStr +" "+moduleStr;
} catch(Exception t) {
// This method is for logging only; we should not throw exceptions to calling methods under any circumstances.
}
return "";
}