|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.2) E14255-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AnalyticEventHandler
Service-provider interface for AnalyticEventHandler
implementations. <p/> An analytic event handler is a concrete subclass of this interface that has a public no- argument constructor and implements the interface methods specified below. <p/> An AnalyticEventHandler implementer should generally package their provider in a jar. That jar should consist of any necessary classes (including, of course, an implementation of AnalyticEventHandler), as well as a file named META-INF/services/com.bea.netuix.servlets.controls.analytics.AnalyticEventHandler. That services file must contain one and only one class name which must be a concrete AnalyticEventHandler implementation. <p/> The provider jar(s) should then be deployed with the application by including the jar in the webapp's WED-INF/lib directory. Provider jars may also be included in the application or system classpath, although this changes the scoping of the provider class objects, and causes the provider implementations to be shared by multiple web apps. <p/> On initialization, the AnalyticEventDispatcher
will load such provider. Id the Dispatcher fails to load or initialize the event handler a error message will be logged and no event handling will take place. <p/> NOTE: Implementations of the interface methods must be safe for use by multiple concurrent threads. <p/>
Method Summary | |
---|---|
void |
dispose() Implementation class may perform cleanup operations here. |
void |
init() Implementation class may perform any one-time initializations here. |
void |
log(AnalyticEvent analyticEvent) This method is called by the container at the end of each page's and portlet's run. |
Method Detail |
---|
void init()
Implementation class may perform any one-time initializations here. If this method fails (throws an exception) the event handler will not be registered and no event handling will take place.
void log(AnalyticEvent analyticEvent)
This method is called by the container at the end of each page's and portlet's run. It is invoked for every page and portlet on every request. Since this method is called so frequently the implementation must be extremely efficient, or the entire portal's performace will suffer.
analyticEvent
- the event to be logged.void dispose()
Implementation class may perform cleanup operations here. Note: there is no guarantee this method will be called.
|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.2) E14255-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2010, Oracle. All rights reserved.