本文整理了Java中org.apache.geronimo.j2ee.deployment.Module.getDeployable()
方法的一些代码示例,展示了Module.getDeployable()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Module.getDeployable()
方法的具体详情如下:
包路径:org.apache.geronimo.j2ee.deployment.Module
类名称:Module
方法名:getDeployable
暂无
代码示例来源:origin: org.apache.geronimo.modules/geronimo-openwebbeans-builder
private boolean hasBeanXml(Module webModule) {
return webModule.getDeployable().getResource("WEB-INF/beans.xml") != null || webModule.getDeployable().getResource("META-INF/beans.xml") != null;
}
代码示例来源:origin: org.apache.geronimo.modules/geronimo-openejb-builder
private void installModule(Module module, EARContext earContext) throws DeploymentException {
registerModule(module, earContext);
JarFile moduleFile = module.getModuleFile();
try {
if (module.isStandAlone()) {
JarUtils.unzipToDirectory(new JarFile(moduleFile.getName()), earContext.getBaseDir());
} else {
// extract the ejbJar file into a standalone packed jar file and add the contents to the output
earContext.addIncludeAsPackedJar(URI.create(module.getTargetPath()), moduleFile);
// add manifest class path entries to the ejb module classpath
Collection<String> EjbModuleClasspaths = module.getClassPath();
EjbModuleClasspaths.add(module.getTargetPath());
Collection<String> moduleLocations = module.isStandAlone() ? null : module.getParentModule()
.getModuleLocations();
URI baseUri = URI.create(module.getTargetPath());
earContext.getCompleteManifestClassPath(module.getDeployable(), baseUri, URI.create("."), EjbModuleClasspaths, moduleLocations);
for (String classpath:EjbModuleClasspaths){
earContext.addToClassPath(classpath);
}
}
//earContext.addInclude(".", moduleFile);
} catch (IOException e) {
throw new DeploymentException("Unable to copy ejb module jar into configuration: " + moduleFile.getName(), e);
}
}
代码示例来源:origin: org.apache.geronimo.modules/geronimo-openejb-builder
Deployable deployable = parentModule.getDeployable();
if (!(deployable instanceof DeployableJarFile)) {
throw new IllegalArgumentException("Expected DeployableJarFile");
代码示例来源:origin: org.apache.geronimo.modules/geronimo-persistence-jpa20-builder
public void initContext(EARContext earContext, Module module, Bundle bundle) throws DeploymentException {
if (module.getDeployable() instanceof DeployableBundle) {
return;
代码示例来源:origin: org.apache.geronimo.modules/geronimo-jaxws-builder
Deployable deployable = module.getDeployable();
URL wsDDUrl = deployable.getResource(path);
if (wsDDUrl != null) {
内容来源于网络,如有侵权,请联系作者删除!