Sun Java System Access Manager 7 2005Q4 Developer's Guide

Console APIs

The public console API package is named . It contains interfaces that can be used to monitor and react to events that occur in the console. This listener can be called when the user executes an action on the console that causes an event. An event can have multiple listeners registered on it. Conversely, a listener can register with multiple events. Events that might be used to trigger a listener include:

When a listener is created all the methods of that interface must be implemented thus, the methods in the AMConsoleListener interface must be implemented. The AMConsoleListenerAdapter class provides default implementations of those methods and can be used instead. Creating a console event listener includes the following:

ProcedureTo Create a Console Event Listener

  1. Write a console event listener class or implement the default methods in the AMConsoleListenerAdapter class.

  2. Compile the code.

  3. Register the listener in the Administration Service.

    Access Manager includes a sample implementation of the ConsoleEventListener. The Sun Java System Access Manager 7 2005Q4 Java API Reference also contains more detailed information on the listener interfaces and class.