Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle TopLink
11g Release 1 (11.1.1)

E28847-01


org.eclipse.persistence.sdo.helper
Class SDOHelperContext.MyNotificationListener

java.lang.Object
  extended by 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
           

 

Constructor Summary
SDOHelperContext.MyNotificationListener(int server)
          This is the default constructor - typically used when running in an actove JBoss instance.
SDOHelperContext.MyNotificationListener(java.lang.String appName, int server)
          This constructor will set 'appName' - typically used when running in an active WebLogic instance.

 

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

 

Field Detail

server

int server

appName

java.lang.String appName

Constructor Detail

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 -

Method Detail

handleNotification

public void handleNotification(javax.management.Notification notification,
                               java.lang.Object handback)
Specified by:
handleNotification in interface javax.management.NotificationListener

Skip navigation links

Copyright © 1998, 2012, Oracle. All Rights Reserved.