Package wt.method
Class ContextCaptureDelegate
java.lang.Object
wt.method.ContextCaptureDelegate
- All Implemented Interfaces:
NotificationHandlerDelegate
Implementation of
Supported API: true
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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classImplementation ofNotificationHandlerDelegateFactoryfor use in servlet engine withNotificationHandlerMBeanvia its CustomDelegateFactoryClass attribute to constructContextCaptureDelegateinstances as delegates. -
Method Summary
Modifier and TypeMethodDescriptionvoidReleases method context set captured in preHandleNotification.booleanpreHandleNotification(NotificationHandlerMBean mbean, ObjectName source, Notification notification, boolean willOutputInfo) If 'willOutputInfo' is true, then captures set of active method contexts.
-
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:
preHandleNotificationin interfaceNotificationHandlerDelegate- Parameters:
mbean- NotificationHandlerMBean from which this delegate is being calledsource- Source of notification; may be null when called from getInfoItemsPreview()notification- Notification object; will be null when called from getInfoItemsPreview() and non-null otherwisewillOutputInfo- 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:
postHandleNotificationin interfaceNotificationHandlerDelegate
-