Package wt.method

Class ContextCaptureDelegate

java.lang.Object
wt.method.ContextCaptureDelegate
All Implemented Interfaces:
NotificationHandlerDelegate

public class ContextCaptureDelegate extends Object implements NotificationHandlerDelegate
Implementation of NotificationHandlerDelegate for use in method server to capture a set of active method contexts immediately prior to notification and then release it immediately thereafter.

Supported API: true
  • Method Details

    • preHandleNotification

      public boolean preHandleNotification(NotificationHandlerMBean mbean, ObjectName source, Notification notification, boolean willOutputInfo)
      If 'willOutputInfo' is true, then captures set of active method contexts.

      Supported API: true
      Specified by:
      preHandleNotification in interface NotificationHandlerDelegate
      Parameters:
      mbean - NotificationHandlerMBean from which this delegate is being called
      source - Source of notification; may be null when called from getInfoItemsPreview()
      notification - Notification object; will be null when called from getInfoItemsPreview() and non-null otherwise
      willOutputInfo - Whether the NotificationHandlerMBean would produce output on its own
      Returns:
      Whether NotificationHandlerMBean should still produce output; result is ignored when called from getInfoItemsPreview()
    • postHandleNotification

      public void postHandleNotification()
      Releases method context set captured in preHandleNotification.

      Supported API: true
      Specified by:
      postHandleNotification in interface NotificationHandlerDelegate