|
AR System Java Plug-in API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bmc.arsys.pluginsvr.plugins.ARPlugin
public abstract class ARPlugin
Default implementation for the ARPluggable interface. 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.
| Constructor Summary | |
|---|---|
ARPlugin()
|
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ARPlugin()
| Method Detail |
|---|
public void onEvent(ARPluginContext context,
int pEventID)
throws com.bmc.arsys.api.ARException
ARPluggable
onEvent in interface ARPluggablecontext - Current context for this plugin call, like username etc.pEventID - the ID for the event that occured
com.bmc.arsys.api.ARException
public void initialize(ARPluginContext context)
throws com.bmc.arsys.api.ARException
ARPluggable
initialize in interface ARPluggablecontext - Current context for this plugin call, like username etc.
com.bmc.arsys.api.ARException
public void terminate(ARPluginContext context)
throws com.bmc.arsys.api.ARException
ARPluggable
terminate in interface ARPluggablecontext - 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 | |||||||||