|
AR System Java Plug-in API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ARPluggable
Parent interface for all types of AR plugins. Methods that need to be implemented include general purpose methods like handling events from server (or even plugin server in the future), initialization and termination. All plugins can implement a public void static init(ARPluginContext context) method to do all intialization for this class. This will be invoked once for each class that implements one of the ARPluggable interfaces on plugin server startup. This same thing can be accomplished using a static block of code in the class. The only advantage in implementing this method is that it gets access to the ARPluginContext object that can be used for the following purposes. 1. Logging any initialization messages 2. Fetching configuration file entries for this plugin from pluginsvr_config.xml file. 3. Get AR System configuration entries from the ar.cfg file. For all instance initialization, the public initialize(ARPluginContext context) should be used. The initialize method is invoked once for each thread instance in plugin server.
| Method Summary | |
|---|---|
void |
initialize(ARPluginContext context)
An initialization routine called once at startup load time for each plugin that is loaded. |
void |
onEvent(ARPluginContext context,
int pEventID)
Methods to handle events from the AR Server. |
void |
terminate(ARPluginContext context)
A clean up method called on a plugin unload or plugin server termination for the plugin to cleanup after itself. |
| Method Detail |
|---|
void onEvent(ARPluginContext context,
int pEventID)
throws com.bmc.arsys.api.ARException
context - Current context for this plugin call, like username etc.pEventID - the ID for the event that occured
com.bmc.arsys.api.ARException
void initialize(ARPluginContext context)
throws com.bmc.arsys.api.ARException
context - Current context for this plugin call, like username etc.
com.bmc.arsys.api.ARException
void terminate(ARPluginContext context)
throws com.bmc.arsys.api.ARException
context - Current context for this plugin call, like username etc.
com.bmc.arsys.api.ARException
|
AR System Java Plug-in API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||