org.apache.geronimo.j2ee.deployment.Module.getDeployable()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(2.4k)|赞(0)|评价(0)|浏览(149)

本文整理了Java中org.apache.geronimo.j2ee.deployment.Module.getDeployable()方法的一些代码示例,展示了Module.getDeployable()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Module.getDeployable()方法的具体详情如下:
包路径:org.apache.geronimo.j2ee.deployment.Module
类名称:Module
方法名:getDeployable

Module.getDeployable介绍

暂无

代码示例

代码示例来源:origin: org.apache.geronimo.modules/geronimo-openwebbeans-builder

  1. private boolean hasBeanXml(Module webModule) {
  2. return webModule.getDeployable().getResource("WEB-INF/beans.xml") != null || webModule.getDeployable().getResource("META-INF/beans.xml") != null;
  3. }

代码示例来源:origin: org.apache.geronimo.modules/geronimo-openejb-builder

  1. private void installModule(Module module, EARContext earContext) throws DeploymentException {
  2. registerModule(module, earContext);
  3. JarFile moduleFile = module.getModuleFile();
  4. try {
  5. if (module.isStandAlone()) {
  6. JarUtils.unzipToDirectory(new JarFile(moduleFile.getName()), earContext.getBaseDir());
  7. } else {
  8. // extract the ejbJar file into a standalone packed jar file and add the contents to the output
  9. earContext.addIncludeAsPackedJar(URI.create(module.getTargetPath()), moduleFile);
  10. // add manifest class path entries to the ejb module classpath
  11. Collection<String> EjbModuleClasspaths = module.getClassPath();
  12. EjbModuleClasspaths.add(module.getTargetPath());
  13. Collection<String> moduleLocations = module.isStandAlone() ? null : module.getParentModule()
  14. .getModuleLocations();
  15. URI baseUri = URI.create(module.getTargetPath());
  16. earContext.getCompleteManifestClassPath(module.getDeployable(), baseUri, URI.create("."), EjbModuleClasspaths, moduleLocations);
  17. for (String classpath:EjbModuleClasspaths){
  18. earContext.addToClassPath(classpath);
  19. }
  20. }
  21. //earContext.addInclude(".", moduleFile);
  22. } catch (IOException e) {
  23. throw new DeploymentException("Unable to copy ejb module jar into configuration: " + moduleFile.getName(), e);
  24. }
  25. }

代码示例来源:origin: org.apache.geronimo.modules/geronimo-openejb-builder

  1. Deployable deployable = parentModule.getDeployable();
  2. if (!(deployable instanceof DeployableJarFile)) {
  3. throw new IllegalArgumentException("Expected DeployableJarFile");

代码示例来源:origin: org.apache.geronimo.modules/geronimo-persistence-jpa20-builder

  1. public void initContext(EARContext earContext, Module module, Bundle bundle) throws DeploymentException {
  2. if (module.getDeployable() instanceof DeployableBundle) {
  3. return;

代码示例来源:origin: org.apache.geronimo.modules/geronimo-jaxws-builder

  1. Deployable deployable = module.getDeployable();
  2. URL wsDDUrl = deployable.getResource(path);
  3. if (wsDDUrl != null) {

相关文章