Examples of WebServiceDeployment


Examples of org.jboss.as.webservices.metadata.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);

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

Examples of org.jboss.as.webservices.metadata.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);

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

Examples of org.jboss.as.webservices.metadata.WebServiceDeployment

public final class WSEJBIntegrationProcessor implements DeploymentUnitProcessor {

    @Override
    public void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
        final DeploymentUnit unit = phaseContext.getDeploymentUnit();
        final WebServiceDeployment wsDeploymentAdapter = new WebServiceDeploymentAdapter();
        processAnnotation(unit, ASHelper.WEB_SERVICE_ANNOTATION, wsDeploymentAdapter);
        processAnnotation(unit, ASHelper.WEB_SERVICE_PROVIDER_ANNOTATION, wsDeploymentAdapter);
        if (!wsDeploymentAdapter.getServiceEndpoints().isEmpty()) {
            unit.putAttachment(WEBSERVICE_DEPLOYMENT_KEY, wsDeploymentAdapter);
        }
    }
View Full Code Here

Examples of org.jboss.as.webservices.metadata.WebServiceDeployment

     *
     * @param dep webservice deployment
     * @return security domain associated with EJB 3 deployment
     */
    public String getSecurityDomain(final Deployment dep) {
        final WebServiceDeployment wsDeployment = WSHelper.getRequiredAttachment(dep, WebServiceDeployment.class);
        String securityDomain = null;
        final Iterator<WebServiceDeclaration> ejbContainers = wsDeployment.getServiceEndpoints().iterator();

        while (ejbContainers.hasNext()) {
            final WebServiceDeclaration ejbContainer = ejbContainers.next();
            //final SecurityDomain nextSecurityDomain = ejbContainer.getAnnotation(SecurityDomain.class);
            final AnnotationInstance nextSecurityDomain = ejbContainer.getAnnotation(SECURITY_DOMAIN_DOT_NAME);
View Full Code Here

Examples of org.jboss.as.webservices.metadata.WebServiceDeployment

     *
     * @param dep webservice deployment
     * @return security roles associated with EJB 21 deployment
     */
    public SecurityRolesMetaData getSecurityRoles(final Deployment dep) {
        final WebServiceDeployment wsDeployment = WSHelper.getRequiredAttachment(dep, WebServiceDeployment.class);
        final SecurityRolesMetaData securityRolesMD = new SecurityRolesMetaData();
        final Iterator<WebServiceDeclaration> ejbContainers = wsDeployment.getServiceEndpoints().iterator();

        while (ejbContainers.hasNext()) {
            final WebServiceDeclaration ejbContainer = ejbContainers.next();
            //final RolesAllowed allowedRoles = ejbContainer.getAnnotation(RolesAllowed.class);
            final AnnotationInstance allowedRoles = ejbContainer.getAnnotation(ROLES_ALLOWED_DOT_NAME);
View Full Code Here

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

    * @param ejbArchiveMD EJB archive meta data
    */
   @Override
   protected void buildEnterpriseBeansMetaData(final Deployment dep, final EJBArchiveMetaData ejbArchiveMD)
   {
      final WebServiceDeployment ejb3Deployment = WSHelper.getRequiredAttachment(dep, WebServiceDeployment.class);
      final List<EJBMetaData> wsEjbsMD = new LinkedList<EJBMetaData>();

      for (final WebServiceDeclaration jbossEjbMD : ejb3Deployment.getServiceEndpoints())
      {
         this.buildEnterpriseBeanMetaData(wsEjbsMD, jbossEjbMD);
      }

      ejbArchiveMD.setEnterpriseBeans(wsEjbsMD);
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, WebServiceDeployment.class);
      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))
         {
View Full Code Here

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

         }
      }
      else if (WSHelper.isJaxwsEjbDeployment(dep))
      {
         this.log.debug("Building injection meta data for JAXWS EJB3 webservice deployment: " + dep.getSimpleName());
         final WebServiceDeployment webServiceDeployment = ASHelper.getRequiredAttachment(unit,
               WebServiceDeployment.class);
         final Service service = dep.getService();

         // iterate through all EJB3 endpoints
         for (final WebServiceDeclaration container : webServiceDeployment.getServiceEndpoints())
         {
            final String ejbName = container.getComponentName();
            final Endpoint endpoint = service.getEndpointByName(ejbName);
            if (endpoint != null && ASHelper.isWebServiceBean(container))
            {
View Full Code Here

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

    * @param dep webservice deployment
    * @return security domain associated with EJB 3 deployment
    */
   public String getSecurityDomain(final Deployment dep)
   {
      final WebServiceDeployment wsDeployment = WSHelper.getRequiredAttachment(dep, WebServiceDeployment.class);
      String securityDomain = null;
      final Iterator<WebServiceDeclaration> ejbContainers = wsDeployment.getServiceEndpoints().iterator();

      while (ejbContainers.hasNext())
      {
         final WebServiceDeclaration ejbContainer = ejbContainers.next();
         final SecurityDomain nextSecurityDomain = ejbContainer.getAnnotation(SecurityDomain.class);
View Full Code Here

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

    * @param dep webservice deployment
    * @return security roles associated with EJB 21 deployment
    */
   public SecurityRolesMetaData getSecurityRoles(final Deployment dep)
   {
      final WebServiceDeployment wsDeployment = WSHelper.getRequiredAttachment(dep, WebServiceDeployment.class);
      final SecurityRolesMetaData securityRolesMD = new SecurityRolesMetaData();
      final Iterator<WebServiceDeclaration> ejbContainers = wsDeployment.getServiceEndpoints().iterator();

      while (ejbContainers.hasNext())
      {
         final WebServiceDeclaration ejbContainer = ejbContainers.next();
         final RolesAllowed allowedRoles = ejbContainer.getAnnotation(RolesAllowed.class);
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.