本文整理了Java中com.sun.enterprise.deployment.Application.getRelativeBundle()
方法的一些代码示例,展示了Application.getRelativeBundle()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Application.getRelativeBundle()
方法的具体详情如下:
包路径:com.sun.enterprise.deployment.Application
类名称:Application
方法名:getRelativeBundle
[英]Get a target bundle descriptor based on an input bundle descriptor and a relative uri from the perspective of the input bundle descriptor.
[中]从输入包描述符的角度,基于输入包描述符和相对uri获取目标包描述符。
代码示例来源:origin: org.glassfish.deployment/dol
targetBundle = app.getRelativeBundle(bundleDescriptor,
relativeModuleUri);
代码示例来源:origin: org.glassfish.main.deployment/dol
targetBundle = app.getRelativeBundle(bundleDescriptor,
relativeModuleUri);
代码示例来源:origin: org.glassfish.main.ejb/ejb-container
private String normalizeSingletonName(String origName, EjbSessionDescriptor sessionDesc) {
String normalizedName;
boolean fullyQualified = origName.contains("#");
Application app = sessionDesc.getEjbBundleDescriptor().getApplication();
if (fullyQualified) {
int indexOfHash = origName.indexOf("#");
String ejbName = origName.substring(indexOfHash + 1);
String relativeJarPath = origName.substring(0, indexOfHash);
BundleDescriptor bundle = app.getRelativeBundle(sessionDesc.getEjbBundleDescriptor(),
relativeJarPath);
if (bundle == null) {
throw new IllegalStateException("Invalid @DependOn value = " + origName +
" for Singleton " + sessionDesc.getName());
}
normalizedName = bundle.getModuleDescriptor().getArchiveUri() + "#" + ejbName;
} else {
normalizedName = sessionDesc.getEjbBundleDescriptor().getModuleDescriptor().getArchiveUri() +
"#" + origName;
}
return normalizedName;
}
代码示例来源:origin: org.glassfish.ejb/ejb-container
private String normalizeSingletonName(String origName, EjbSessionDescriptor sessionDesc) {
String normalizedName = origName;
boolean fullyQualified = origName.contains("#");
Application app = sessionDesc.getEjbBundleDescriptor().getApplication();
if (fullyQualified) {
int indexOfHash = origName.indexOf("#");
String ejbName = origName.substring(indexOfHash + 1);
String relativeJarPath = origName.substring(0, indexOfHash);
BundleDescriptor bundle = app.getRelativeBundle(sessionDesc.getEjbBundleDescriptor(),
relativeJarPath);
if (bundle == null) {
throw new IllegalStateException("Invalid @DependOn value = " + origName +
" for Singleton " + sessionDesc.getName());
}
normalizedName = bundle.getModuleDescriptor().getArchiveUri() + "#" + ejbName;
} else {
normalizedName = sessionDesc.getEjbBundleDescriptor().getModuleDescriptor().getArchiveUri() +
"#" + origName;
}
return normalizedName;
}
代码示例来源:origin: org.glassfish.deployment/dol
String relativeModuleUri = linkName.substring(0, hashIndex);
msgDestName = linkName.substring(hashIndex + 1);
targetBundle = app.getRelativeBundle(bundleDescriptor,
relativeModuleUri);
} else {
代码示例来源:origin: org.glassfish.main.deployment/dol
String relativeModuleUri = linkName.substring(0, hashIndex);
msgDestName = linkName.substring(hashIndex + 1);
targetBundle = app.getRelativeBundle(bundleDescriptor,
relativeModuleUri);
} else {
代码示例来源:origin: org.glassfish.deployment/dol
String relativeJarPath = next.substring(0, indexOfHash);
BundleDescriptor bundle = app.getRelativeBundle(sessionDesc.getEjbBundleDescriptor(),
relativeJarPath);
代码示例来源:origin: org.glassfish.main.ejb/ejb-container
String relativeJarPath = next.substring(0, indexOfHash);
BundleDescriptor bundle = app.getRelativeBundle(sessionDesc.getEjbBundleDescriptor(),
relativeJarPath);
代码示例来源:origin: org.glassfish.deployment/dol
} else {
refereeJar =
getApplication().getRelativeBundle(referringJar, jarPath);
代码示例来源:origin: org.glassfish.main.deployment/dol
} else {
refereeJar =
getApplication().getRelativeBundle(referringJar, jarPath);
内容来源于网络,如有侵权,请联系作者删除!