com.sun.xml.ws.commons
Class WSEndpointCollectionBasedMOMListener<T extends MOMRegistrationAware>

java.lang.Object
  extended by com.sun.xml.ws.commons.WSEndpointCollectionBasedMOMListener<T>
Type Parameters:
T -
All Implemented Interfaces:
LazyMOMProvider.DefaultScopeChangeListener, LazyMOMProvider.ScopeChangeListener

public class WSEndpointCollectionBasedMOMListener<T extends MOMRegistrationAware>
extends Object
implements LazyMOMProvider.DefaultScopeChangeListener

Default implementation of LazyMOMProvider.DefaultScopeChangeListener for manager factories handling WSEndpoint instances.


Constructor Summary
WSEndpointCollectionBasedMOMListener(Object lock, String registrationName, Map<WSEndpoint,T> registrationAwareMap)
           
WSEndpointCollectionBasedMOMListener(String registrationName, Map<WSEndpoint,T> registrationAwareMap)
           
 
Method Summary
 boolean canRegisterAtMOM()
          Returns an indication whether a object can be directly registered at ManagedObjectManager.
 void initialize()
          Initializes this listener.
 void registerAtMOM(MOMRegistrationAware momRegistrationAware, ManagedObjectManager managedObjectManager)
           
 void registerAtMOM(MOMRegistrationAware momRegistrationAware, WSEndpoint wsEndpoint)
           
 void scopeChanged(LazyMOMProvider.Scope scope)
           
 void unregisterFromMOM(MOMRegistrationAware momRegistrationAware, ManagedObjectManager managedObjectManager)
           
 void unregisterFromMOM(MOMRegistrationAware momRegistrationAware, WSEndpoint wsEndpoint)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WSEndpointCollectionBasedMOMListener

public WSEndpointCollectionBasedMOMListener(String registrationName,
                                            Map<WSEndpoint,T> registrationAwareMap)

WSEndpointCollectionBasedMOMListener

public WSEndpointCollectionBasedMOMListener(Object lock,
                                            String registrationName,
                                            Map<WSEndpoint,T> registrationAwareMap)
Method Detail

initialize

public void initialize()
Initializes this listener. Currently this means that listener is registering itself at LazyMOMProvider.


canRegisterAtMOM

public boolean canRegisterAtMOM()
Returns an indication whether a object can be directly registered at ManagedObjectManager.

Returns:
true if a object can be registered, false otherwise

registerAtMOM

public void registerAtMOM(MOMRegistrationAware momRegistrationAware,
                          WSEndpoint wsEndpoint)

registerAtMOM

public void registerAtMOM(MOMRegistrationAware momRegistrationAware,
                          ManagedObjectManager managedObjectManager)

scopeChanged

public void scopeChanged(LazyMOMProvider.Scope scope)
Specified by:
scopeChanged in interface LazyMOMProvider.ScopeChangeListener

unregisterFromMOM

public void unregisterFromMOM(MOMRegistrationAware momRegistrationAware,
                              ManagedObjectManager managedObjectManager)

unregisterFromMOM

public void unregisterFromMOM(MOMRegistrationAware momRegistrationAware,
                              WSEndpoint wsEndpoint)


Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.