Examples of WebServiceDeployment


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

         throw new IllegalStateException("Deployment unit does not contain ejb3 deployment");

      // Copy the attachments
      dep.addAttachment(Ejb3Deployment.class, ejb3Deployment);

      WebServiceDeployment apiAdapter = WebServiceDeploymentApiAdapter.createInstance(ejb3Deployment);
      Iterator<WebServiceDeclaration> it = apiAdapter.getServiceEndpoints().iterator();
      while (it.hasNext())
      {
         WebServiceDeclaration container = it.next();
         if (isWebServiceBean(container))
         {
View Full Code Here

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

      if (ejb3Deployment == null)
         return false;

      boolean isWebServiceDeployment = false;

      WebServiceDeployment apiAdapter = WebServiceDeploymentApiAdapter.createInstance(ejb3Deployment);
      Iterator<WebServiceDeclaration> it = apiAdapter.getServiceEndpoints().iterator();
      while (it.hasNext())
      {
         WebServiceDeclaration container = it.next();
         if (isWebServiceBean(container))
         {
View Full Code Here

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

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

      WebServiceDeployment apiAdapter = WebServiceDeploymentApiAdapter.createInstance(
        unit.getAttachment(Ejb3Deployment.class)
      );
      buildEnterpriseBeansMetaData(umd, apiAdapter);

      JBossMetaData jbMetaData = unit.getAttachment(JBossMetaData.class);
View Full Code Here

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

      String securityDomain = null;

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

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

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

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

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

{
   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

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

      }
   }

   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

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

      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

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

         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
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.