FileDocCategorySizeDatePackage
EndpointLifecycleListenerImpl.javaAPI DocGlassfish v2 API3655Fri May 04 22:30:26 BST 2007com.sun.enterprise.jbi.serviceengine.bridge

EndpointLifecycleListenerImpl

public class EndpointLifecycleListenerImpl extends Object implements com.sun.enterprise.webservice.monitoring.EndpointLifecycleListener
author
Manisha Umbarje

Fields Summary
protected static final Logger
logger
Internal handle to the logger instance
Constructors Summary
public EndpointLifecycleListenerImpl()
Creates a new instance of EndpointLifecycleListenerImpl

                
      
    
Methods Summary
public voidendpointAdded(com.sun.enterprise.webservice.monitoring.Endpoint endpoint)
Notification of a new Web Service endpoint installation in the appserver.

param
endpoint endpoint to register SOAPMessageListener if needed.

            // End point added
        EndpointHelper.getInstance().registerEndpoint(endpoint);
    
public voidendpointRemoved(com.sun.enterprise.webservice.monitoring.Endpoint endpoint)
Notification of a Web Service endpoint removal from the appserver

param
endpoint handler to register SOAPMessageListener if needed.

        WebServiceEndpoint endpt = endpoint.getDescriptor();
        if(endpt == null)
            return;
        String endpointName = endpt.hasWsdlPort() ?
            endpt.getWsdlPort().getLocalPart() : endpt.getEndpointName();
        EndpointHelper.getInstance().unregisterEndpoint(
                endpt.getServiceName(), endpointName);