Skip navigation links
org.eclipse.persistence.sdo.helper
Class SDOHelperContext.MyNotificationListener
java.lang.Object
org.eclipse.persistence.sdo.helper.SDOHelperContext.MyNotificationListener
- All Implemented Interfaces:
- java.util.EventListener, javax.management.NotificationListener
- Enclosing class:
- SDOHelperContext
-
private static class SDOHelperContext.MyNotificationListener
- extends java.lang.Object
- implements javax.management.NotificationListener
INTERNAL: Inner class used to catch application re-deployment. Upon notification of this event, the helper context for the given application will be removed from the helper context to application map. This method will also remove the corresponding entry in the application name to application loader map if necessary. For WebLogic, 'appName' will be set; we will regester a listener for each application name we key a context on, and will only receive a notification if a particular app is redeployed. Upon notification we will remove the context entry for 'appName'. For JBoss, 'appName' will not be set; we will only register the listener once, and each time we're notified of an application redeployment, we will reset the associated helper context if one exists.
Field Summary |
(package private) java.lang.String |
appName
|
(package private) int |
server
|
Method Summary |
void |
handleNotification(javax.management.Notification notification, java.lang.Object handback)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
server
int server
appName
java.lang.String appName
SDOHelperContext.MyNotificationListener
public SDOHelperContext.MyNotificationListener(int server)
- This is the default constructor - typically used when running in an actove JBoss instance.
- Parameters:
server
-
SDOHelperContext.MyNotificationListener
public SDOHelperContext.MyNotificationListener(java.lang.String appName,
int server)
- This constructor will set 'appName' - typically used when running in an active WebLogic instance.
- Parameters:
appName
-
server
-
handleNotification
public void handleNotification(javax.management.Notification notification,
java.lang.Object handback)
-
- Specified by:
handleNotification
in interface javax.management.NotificationListener
Skip navigation links