Skip navigation links

Oracle Content Services Web Services Java API Reference
10g Release 1 (10.1.2.3)

B25584-03


oracle.ifs.fdk
Interface EventHandler


public interface EventHandler

Processes event occurrences and timer expirations.

Implementations are server plug-ins that perform custom processing of registered events or periodic processing at specified time intervals.


Method Summary
 void handleDispose(EventHandlerContext context)
          Called when the EventHandler instance will no longer be used.
 void handleEventPosted(EventHandlerContext context)
          Called when at least one registered event is posted.
 void handleInitialize(EventHandlerContext context)
          Initializes this EventHandler.
 void handleTimerExpired(EventHandlerContext context)
          Called when the timer for this EventHandler expires.

 

Method Detail

handleInitialize

public void handleInitialize(EventHandlerContext context)
                      throws java.lang.Exception
Initializes this EventHandler.

Called immediately after construction and before any of the other methods in the interface are invoked.

Parameters:
context - the EventHandlerContext to use for processing
Throws:
java.lang.Exception - if the operation fails

handleEventPosted

public void handleEventPosted(EventHandlerContext context)
                       throws java.lang.Exception
Called when at least one registered event is posted.
Parameters:
context - the EventHandlerContext to use for processing
Throws:
java.lang.Exception - if the operation fails

handleTimerExpired

public void handleTimerExpired(EventHandlerContext context)
                        throws java.lang.Exception
Called when the timer for this EventHandler expires.
Parameters:
context - the EventHandlerContext to use for processing
Throws:
java.lang.Exception - if the operation fails

handleDispose

public void handleDispose(EventHandlerContext context)
                   throws java.lang.Exception
Called when the EventHandler instance will no longer be used.

The instance should release any resources it is holding that would not be automatically released as part of normal garbage collection of the object.

Parameters:
context - the EventHandlerContext to use for processing
Throws:
java.lang.Exception - if the operation fails

Skip navigation links

Oracle Content Services Web Services Java API Reference
10g Release 1 (10.1.2.3)

B25584-03


Copyright © 2002, 2005, Oracle. All rights reserved.