Class CarbonServerLifeCycleListener

java.lang.Object
org.wso2.carbon.webapp.ext.cxf.lifecycle.CarbonServerLifeCycleListener
All Implemented Interfaces:
org.apache.cxf.endpoint.ServerLifeCycleListener

public class CarbonServerLifeCycleListener extends Object implements org.apache.cxf.endpoint.ServerLifeCycleListener
Implementation of ServerLifeCycleListener interface. Custom CXF extensions can be added here. Currently perform following tasks.

1. Load the configuration from carbon.xml to be used in future.

2. Scan the registered interceptors and replace WSDLGetInterceptor by HostNameSupportedWSDLGetInterceptor if it available on Classpath.

  • Constructor Details

    • CarbonServerLifeCycleListener

      public CarbonServerLifeCycleListener()
  • Method Details

    • startServer

      public void startServer(org.apache.cxf.endpoint.Server server)
      Specified by:
      startServer in interface org.apache.cxf.endpoint.ServerLifeCycleListener
    • stopServer

      public void stopServer(org.apache.cxf.endpoint.Server server)
      Specified by:
      stopServer in interface org.apache.cxf.endpoint.ServerLifeCycleListener
    • setCarbonHostName

      protected void setCarbonHostName(org.apache.cxf.endpoint.Server server, CarbonConfiguration configuration)