Package com.sun.xml.ws.commons
Class WSEndpointCollectionBasedMOMListener<T extends MOMRegistrationAware>
- java.lang.Object
-
- com.sun.xml.ws.commons.WSEndpointCollectionBasedMOMListener<T>
-
- Type Parameters:
T- type
- All Implemented Interfaces:
LazyMOMProvider.DefaultScopeChangeListener,LazyMOMProvider.ScopeChangeListener
public class WSEndpointCollectionBasedMOMListener<T extends MOMRegistrationAware> extends Object implements LazyMOMProvider.DefaultScopeChangeListener
Default implementation ofLazyMOMProvider.DefaultScopeChangeListenerfor manager factories handlingWSEndpointinstances.
-
-
Constructor Summary
Constructors Constructor Description WSEndpointCollectionBasedMOMListener(Object lock, String registrationName, Map<WSEndpoint,T> registrationAwareMap)WSEndpointCollectionBasedMOMListener(String registrationName, Map<WSEndpoint,T> registrationAwareMap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanRegisterAtMOM()Returns an indication whether a object can be directly registered atManagedObjectManager.voidinitialize()Initializes this listener.voidregisterAtMOM(MOMRegistrationAware momRegistrationAware, WSEndpoint wsEndpoint)voidregisterAtMOM(MOMRegistrationAware momRegistrationAware, org.glassfish.gmbal.ManagedObjectManager managedObjectManager)voidscopeChanged(LazyMOMProvider.Scope scope)voidunregisterFromMOM(MOMRegistrationAware momRegistrationAware, WSEndpoint wsEndpoint)voidunregisterFromMOM(MOMRegistrationAware momRegistrationAware, org.glassfish.gmbal.ManagedObjectManager managedObjectManager)
-
-
-
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 atLazyMOMProvider.
-
canRegisterAtMOM
public boolean canRegisterAtMOM()
Returns an indication whether a object can be directly registered atManagedObjectManager.- Returns:
trueif a object can be registered,falseotherwise
-
registerAtMOM
public void registerAtMOM(MOMRegistrationAware momRegistrationAware, WSEndpoint wsEndpoint)
-
registerAtMOM
public void registerAtMOM(MOMRegistrationAware momRegistrationAware, org.glassfish.gmbal.ManagedObjectManager managedObjectManager)
-
scopeChanged
public void scopeChanged(LazyMOMProvider.Scope scope)
- Specified by:
scopeChangedin interfaceLazyMOMProvider.ScopeChangeListener
-
unregisterFromMOM
public void unregisterFromMOM(MOMRegistrationAware momRegistrationAware, org.glassfish.gmbal.ManagedObjectManager managedObjectManager)
-
unregisterFromMOM
public void unregisterFromMOM(MOMRegistrationAware momRegistrationAware, WSEndpoint wsEndpoint)
-
-