Class EndpointPublisherImpl

  • All Implemented Interfaces:
    org.jboss.wsf.spi.publish.EndpointPublisher

    public final class EndpointPublisherImpl
    extends Object
    implements org.jboss.wsf.spi.publish.EndpointPublisher
    WS endpoint publisher, allows for publishing a WS endpoint on AS 7
    Author:
    alessio.soldano@jboss.com
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void destroy​(org.jboss.wsf.spi.publish.Context context)  
      protected void doDeploy​(org.jboss.msc.service.ServiceTarget target, org.jboss.as.server.deployment.DeploymentUnit unit)
      Triggers the WS deployment aspects, which process the deployment and install the endpoint services.
      protected org.jboss.as.server.deployment.DeploymentUnit doPrepare​(String context, ClassLoader loader, Map<String,​String> urlPatternToClassNameMap, org.jboss.metadata.web.jboss.JBossWebMetaData jbwmd, org.jboss.wsf.spi.metadata.webservices.WebservicesMetaData metadata, org.jboss.wsf.spi.metadata.webservices.JBossWebservicesMetaData jbwsMetadata, org.jboss.as.controller.capability.CapabilityServiceSupport capabilityServiceSupport)
      Prepare the ws Deployment and return a DeploymentUnit containing it
      protected org.jboss.wsf.spi.publish.Context doPublish​(org.jboss.msc.service.ServiceTarget target, org.jboss.as.server.deployment.DeploymentUnit unit)
      Publish the webapp for the WS deployment unit
      org.jboss.wsf.spi.publish.Context publish​(String context, ClassLoader loader, Map<String,​String> urlPatternToClassNameMap)  
      org.jboss.wsf.spi.publish.Context publish​(String context, ClassLoader loader, Map<String,​String> urlPatternToClassNameMap, org.jboss.wsf.spi.metadata.webservices.WebservicesMetaData metadata)  
      org.jboss.wsf.spi.publish.Context publish​(String context, ClassLoader loader, Map<String,​String> urlPatternToClassNameMap, org.jboss.wsf.spi.metadata.webservices.WebservicesMetaData metadata, org.jboss.wsf.spi.metadata.webservices.JBossWebservicesMetaData jbwsMetadata)  
      protected org.jboss.wsf.spi.publish.Context publish​(org.jboss.msc.service.ServiceTarget target, String context, ClassLoader loader, Map<String,​String> urlPatternToClassNameMap, org.jboss.metadata.web.jboss.JBossWebMetaData jbwmd, org.jboss.wsf.spi.metadata.webservices.WebservicesMetaData metadata, org.jboss.wsf.spi.metadata.webservices.JBossWebservicesMetaData jbwsMetadata, org.jboss.as.controller.capability.CapabilityServiceSupport capabilityServiceSupport)  
      protected void stopWebApp​(org.jboss.wsf.spi.deployment.Deployment deployment)
      Stops the webapp serving the provided ws deployment
      protected void undeploy​(org.jboss.as.server.deployment.DeploymentUnit unit)
      Triggers the WS deployment aspects, which process the deployment unit and stop the endpoint services.
      protected void undeploy​(org.jboss.wsf.spi.deployment.Deployment deployment)  
    • Constructor Detail

      • EndpointPublisherImpl

        protected EndpointPublisherImpl​(WebHost host)
      • EndpointPublisherImpl

        protected EndpointPublisherImpl​(WebHost host,
                                        boolean runningInService)
      • EndpointPublisherImpl

        protected EndpointPublisherImpl​(boolean runningInService)
    • Method Detail

      • publish

        public org.jboss.wsf.spi.publish.Context publish​(String context,
                                                         ClassLoader loader,
                                                         Map<String,​String> urlPatternToClassNameMap)
                                                  throws Exception
        Specified by:
        publish in interface org.jboss.wsf.spi.publish.EndpointPublisher
        Throws:
        Exception
      • publish

        public org.jboss.wsf.spi.publish.Context publish​(String context,
                                                         ClassLoader loader,
                                                         Map<String,​String> urlPatternToClassNameMap,
                                                         org.jboss.wsf.spi.metadata.webservices.WebservicesMetaData metadata)
                                                  throws Exception
        Specified by:
        publish in interface org.jboss.wsf.spi.publish.EndpointPublisher
        Throws:
        Exception
      • publish

        public org.jboss.wsf.spi.publish.Context publish​(String context,
                                                         ClassLoader loader,
                                                         Map<String,​String> urlPatternToClassNameMap,
                                                         org.jboss.wsf.spi.metadata.webservices.WebservicesMetaData metadata,
                                                         org.jboss.wsf.spi.metadata.webservices.JBossWebservicesMetaData jbwsMetadata)
                                                  throws Exception
        Specified by:
        publish in interface org.jboss.wsf.spi.publish.EndpointPublisher
        Throws:
        Exception
      • publish

        protected org.jboss.wsf.spi.publish.Context publish​(org.jboss.msc.service.ServiceTarget target,
                                                            String context,
                                                            ClassLoader loader,
                                                            Map<String,​String> urlPatternToClassNameMap,
                                                            org.jboss.metadata.web.jboss.JBossWebMetaData jbwmd,
                                                            org.jboss.wsf.spi.metadata.webservices.WebservicesMetaData metadata,
                                                            org.jboss.wsf.spi.metadata.webservices.JBossWebservicesMetaData jbwsMetadata,
                                                            org.jboss.as.controller.capability.CapabilityServiceSupport capabilityServiceSupport)
                                                     throws Exception
        Throws:
        Exception
      • doPrepare

        protected org.jboss.as.server.deployment.DeploymentUnit doPrepare​(String context,
                                                                          ClassLoader loader,
                                                                          Map<String,​String> urlPatternToClassNameMap,
                                                                          org.jboss.metadata.web.jboss.JBossWebMetaData jbwmd,
                                                                          org.jboss.wsf.spi.metadata.webservices.WebservicesMetaData metadata,
                                                                          org.jboss.wsf.spi.metadata.webservices.JBossWebservicesMetaData jbwsMetadata,
                                                                          org.jboss.as.controller.capability.CapabilityServiceSupport capabilityServiceSupport)
        Prepare the ws Deployment and return a DeploymentUnit containing it
        Parameters:
        context -
        loader -
        urlPatternToClassNameMap -
        jbwmd -
        metadata -
        jbwsMetadata -
        Returns:
      • doDeploy

        protected void doDeploy​(org.jboss.msc.service.ServiceTarget target,
                                org.jboss.as.server.deployment.DeploymentUnit unit)
        Triggers the WS deployment aspects, which process the deployment and install the endpoint services.
        Parameters:
        target -
        unit -
      • doPublish

        protected org.jboss.wsf.spi.publish.Context doPublish​(org.jboss.msc.service.ServiceTarget target,
                                                              org.jboss.as.server.deployment.DeploymentUnit unit)
                                                       throws Exception
        Publish the webapp for the WS deployment unit
        Parameters:
        target -
        unit -
        Returns:
        Throws:
        Exception
      • destroy

        public void destroy​(org.jboss.wsf.spi.publish.Context context)
                     throws Exception
        Specified by:
        destroy in interface org.jboss.wsf.spi.publish.EndpointPublisher
        Throws:
        Exception
      • undeploy

        protected void undeploy​(org.jboss.as.server.deployment.DeploymentUnit unit)
                         throws Exception
        Triggers the WS deployment aspects, which process the deployment unit and stop the endpoint services.
        Throws:
        Exception
      • undeploy

        protected void undeploy​(org.jboss.wsf.spi.deployment.Deployment deployment)
                         throws Exception
        Throws:
        Exception
      • stopWebApp

        protected void stopWebApp​(org.jboss.wsf.spi.deployment.Deployment deployment)
                           throws Exception
        Stops the webapp serving the provided ws deployment
        Parameters:
        deployment -
        Throws:
        Exception