Package org.jboss.wsf.spi.deployment.integration

Examples of org.jboss.wsf.spi.deployment.integration.WebServiceDeployment


     *
     * @param unit deployment unit
     * @return list of JAXWS EJBs meta data
     */
    public static List<WebServiceDeclaration> getJaxwsEjbs(final DeploymentUnit unit) {
        final WebServiceDeployment wsDeployment = ASHelper.getRequiredAttachment(unit, WSAttachmentKeys.WEBSERVICE_DEPLOYMENT_KEY);
        final List<WebServiceDeclaration> endpoints = new ArrayList<WebServiceDeclaration>();

        final Iterator<WebServiceDeclaration> ejbIterator = wsDeployment.getServiceEndpoints().iterator();
        while (ejbIterator.hasNext()) {
            final WebServiceDeclaration ejbContainer = ejbIterator.next();
            if (ASHelper.isWebServiceBean(ejbContainer)) {
                endpoints.add(ejbContainer);
            }
View Full Code Here


{
   public void addSecurityDomain(JBossWebMetaData jbossWeb, Deployment dep)
   {
      String securityDomain = null;

      WebServiceDeployment webServiceDeployment = dep.getAttachment(WebServiceDeployment.class);
      if (webServiceDeployment != null)
      {
         Iterator<WebServiceDeclaration> it = webServiceDeployment.getServiceEndpoints().iterator();
         while (it.hasNext())
         {
            WebServiceDeclaration container = it.next();
            SecurityDomain anSecurityDomain = container.getAnnotation(SecurityDomain.class);
            if (anSecurityDomain != null)
View Full Code Here

      }
   }

   public void addSecurityRoles(JBossWebMetaData webApp, Deployment dep)
   {
      WebServiceDeployment webServiceDeployment = dep.getAttachment(WebServiceDeployment.class);
      if (webServiceDeployment != null)
      {
         Iterator<WebServiceDeclaration> it = webServiceDeployment.getServiceEndpoints().iterator();
         while (it.hasNext())
         {
            WebServiceDeclaration container = it.next();
            RolesAllowed anRolesAllowed = container.getAnnotation(RolesAllowed.class);
            if (anRolesAllowed != null)
View Full Code Here

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

      WebServiceDeployment webServiceDeployment = unit.getAttachment(WebServiceDeployment.class);
      if (webServiceDeployment == null)
         throw new IllegalStateException("Deployment unit does not contain webServiceDeployment");
     
      // Copy the attachments
      dep.addAttachment(WebservicesMetaData.class, wsMetaData);
View Full Code Here

         else if (deploymentType == DeploymentType.JAXWS_EJB3)
         {
            JBossMetaData jbossMD = unit.getAttachment(JBossMetaData.class);
            JBossEnterpriseBeansMetaData jebMDs = jbossMD.getEnterpriseBeans();

            WebServiceDeployment webServiceDeployment = unit.getAttachment(WebServiceDeployment.class);

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

   public EJBArchiveMetaData buildMetaData(Deployment dep, DeploymentUnit unit)
   {    
      EJBArchiveMetaData umd = new EJBArchiveMetaData();

      WebServiceDeployment webServiceDeployment = dep.getAttachment(WebServiceDeployment.class);
      buildEnterpriseBeansMetaData(umd, webServiceDeployment);

      JBossMetaData jbMetaData = unit.getAttachment(JBossMetaData.class);
      if (jbMetaData != null)
         buildWebservicesMetaData(umd, jbMetaData);
View Full Code Here

      dep.setRuntimeClassLoader(unit.getClassLoader());
      dep.setType(getDeploymentType());

      Service service = dep.getService();

      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();
         if (isWebServiceBean(container))
         {
View Full Code Here

   }

   @Override
   public boolean isWebServiceDeployment(DeploymentUnit unit)
   {
      WebServiceDeployment webServiceDeployment = unit.getAttachment(WebServiceDeployment.class);
      if (null == webServiceDeployment )
         return false;

      boolean isWebServiceDeployment = false;

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

    private boolean isJaxwsEjbDeployment(final DeploymentUnit unit) {
        final boolean isEjbDeployment = EjbDeploymentMarker.isEjbDeployment(unit);
        if (isEjbDeployment) {
            WSEJBAdapterDeployer.internalDeploy(unit); // TODO: refactor this ugly hack
            WebServiceDeployment wsDeployment = ASHelper.getRequiredAttachment(unit, WEBSERVICE_DEPLOYMENT_KEY);
            return wsDeployment.getServiceEndpoints().size() > 0;
        }

        return false;
    }
View Full Code Here

     *
     * @param unit deployment unit
     * @return list of JAXWS EJBs meta data
     */
    public static List<WebServiceDeclaration> getJaxwsEjbs(final DeploymentUnit unit) {
        final WebServiceDeployment wsDeployment = ASHelper.getRequiredAttachment(unit, WSAttachmentKeys.WEBSERVICE_DEPLOYMENT_KEY);

        return Collections.unmodifiableList(wsDeployment.getServiceEndpoints());
    }
View Full Code Here

TOP

Related Classes of org.jboss.wsf.spi.deployment.integration.WebServiceDeployment

Copyright © 2018 www.massapicom. 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.