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 of
LazyMOMProvider.DefaultScopeChangeListener for manager factories handling WSEndpoint instances.-
Constructor Summary
ConstructorsConstructorDescriptionWSEndpointCollectionBasedMOMListener(Object lock, String registrationName, Map<WSEndpoint, T> registrationAwareMap) WSEndpointCollectionBasedMOMListener(String registrationName, Map<WSEndpoint, T> registrationAwareMap) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns an indication whether a object can be directly registered atManagedObjectManager.voidInitializes this listener.voidregisterAtMOM(MOMRegistrationAware momRegistrationAware, WSEndpoint wsEndpoint) voidregisterAtMOM(MOMRegistrationAware momRegistrationAware, org.glassfish.gmbal.ManagedObjectManager managedObjectManager) voidvoidunregisterFromMOM(MOMRegistrationAware momRegistrationAware, WSEndpoint wsEndpoint) voidunregisterFromMOM(MOMRegistrationAware momRegistrationAware, org.glassfish.gmbal.ManagedObjectManager managedObjectManager)
-
Constructor Details
-
WSEndpointCollectionBasedMOMListener
public WSEndpointCollectionBasedMOMListener(String registrationName, Map<WSEndpoint, T> registrationAwareMap) -
WSEndpointCollectionBasedMOMListener
public WSEndpointCollectionBasedMOMListener(Object lock, String registrationName, Map<WSEndpoint, T> registrationAwareMap)
-
-
Method Details
-
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
-
registerAtMOM
public void registerAtMOM(MOMRegistrationAware momRegistrationAware, org.glassfish.gmbal.ManagedObjectManager managedObjectManager) -
scopeChanged
- Specified by:
scopeChangedin interfaceLazyMOMProvider.ScopeChangeListener
-
unregisterFromMOM
public void unregisterFromMOM(MOMRegistrationAware momRegistrationAware, org.glassfish.gmbal.ManagedObjectManager managedObjectManager) -
unregisterFromMOM
-