Package org.jboss.wsf.spi.deployment

Examples of org.jboss.wsf.spi.deployment.ArchiveDeployment.addAttachment()


      JBossWebMetaData webMetaData = unit.getAttachment(JBossWebMetaData.class);
      if (webMetaData == null)
         throw new IllegalStateException("Deployment unit does not contain web meta data");

      // Copy the attachments
      dep.addAttachment(JBossWebMetaData.class, webMetaData);

      List<ServletMetaData> servlets = getRelevantServlets(webMetaData, unit.getClassLoader());
      for (ServletMetaData servlet : servlets)
      {
         String servletName = servlet.getName();
View Full Code Here


      WebservicesMetaData wsMetaData = getWebservicesMetaData(unit);
      if (wsMetaData == null)
         throw new IllegalStateException("Deployment unit does not contain webservices meta data");

      // Copy the attachments
      dep.addAttachment(WebservicesMetaData.class, wsMetaData);
      dep.addAttachment(JBossWebMetaData.class, webMetaData);

      for (WebserviceDescriptionMetaData wsd : wsMetaData.getWebserviceDescriptions())
      {
         for (PortComponentMetaData pcmd : wsd.getPortComponents())
View Full Code Here

      if (wsMetaData == null)
         throw new IllegalStateException("Deployment unit does not contain webservices meta data");

      // Copy the attachments
      dep.addAttachment(WebservicesMetaData.class, wsMetaData);
      dep.addAttachment(JBossWebMetaData.class, webMetaData);

      for (WebserviceDescriptionMetaData wsd : wsMetaData.getWebserviceDescriptions())
      {
         for (PortComponentMetaData pcmd : wsd.getPortComponents())
         {
View Full Code Here

      WebServiceDeployment webServiceDeployment = unit.getAttachment(WebServiceDeployment.class);
      if (webServiceDeployment == null)
         throw new IllegalStateException("Deployment unit does not contain webServiceDeployment");

      // Copy the attachments
      dep.addAttachment(WebServiceDeployment.class, webServiceDeployment);

      Iterator<WebServiceDeclaration> it = webServiceDeployment.getServiceEndpoints().iterator();
      while (it.hasNext())
      {
         WebServiceDeclaration container = it.next();
View Full Code Here

        final UnifiedVirtualFile uvf = root != null ? new VirtualFileAdaptor(root) : new ResourceLoaderAdapter(classLoader);
        final ArchiveDeployment dep = this.newDeployment(parentDep, unit.getName(), classLoader, uvf);

        //add an AnnotationInfo attachment that uses composite jandex index
        dep.addAttachment(AnnotationsInfo.class, new JandexAnnotationsInfo(unit));

        return dep;
    }

    private ArchiveDeployment newDeployment(final ArchiveDeployment parent, final String name, final ClassLoader loader, final UnifiedVirtualFile rootFile) {
View Full Code Here

            throw new RuntimeException(e);
        }

        this.build(dep, unit);

        dep.addAttachment(DeploymentUnit.class, unit);
        unit.putAttachment(WSAttachmentKeys.DEPLOYMENT_KEY, dep);
    }

    /**
     * Template method for subclasses to implement.
View Full Code Here

            throw new RuntimeException(e);
        }

        this.build(dep, unit);

        dep.addAttachment(DeploymentUnit.class, unit);
        unit.putAttachment(WSAttachmentKeys.DEPLOYMENT_KEY, dep);
    }

    /**
     * Template method for subclasses to implement.
View Full Code Here

            throw new RuntimeException(e);
        }

        this.build(dep, unit);

        dep.addAttachment(DeploymentUnit.class, unit);
        unit.putAttachment(WSAttachmentKeys.DEPLOYMENT_KEY, dep);
    }

    /**
     * Template method for subclasses to implement.
View Full Code Here

            throw new RuntimeException(e);
        }

        this.build(dep, unit);

        dep.addAttachment(DeploymentUnit.class, unit);
        unit.putAttachment(WSAttachmentKeys.DEPLOYMENT_KEY, dep);
    }

    /**
     * Template method for subclasses to implement.
View Full Code Here

      WebservicesMetaData wsMetaData = getWebservicesMetaData(di, "WEB-INF/webservices.xml");
      if (wsMetaData == null)
         throw new IllegalStateException("Deployment unit does not contain webservices meta data");

      // Copy the attachments
      dep.addAttachment(WebservicesMetaData.class, wsMetaData);
      dep.addAttachment(WebMetaData.class, webMetaData);

      for (WebserviceDescriptionMetaData wsd : wsMetaData.getWebserviceDescriptions())
      {
         for (PortComponentMetaData pcmd : wsd.getPortComponents())
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.