© 2001 BEA Systems, Inc.

com.bea.commerce.platform.tracking
Class TrackingEventHelperImpl

java.lang.Object
  |
  +--com.bea.commerce.platform.tracking.TrackingEventHelperImpl
All Implemented Interfaces:
TrackingConstants, TrackingEventHelper

public class TrackingEventHelperImpl
extends java.lang.Object
implements TrackingEventHelper

Helper methods for dispatching Behavior Tracking events to the Event Service. This class implements the singleton pattern.

See Also:
getInstance()

Fields inherited from interface com.bea.commerce.platform.tracking.TrackingConstants
CACHE_SIZE_PROPERTY, CONNECTION_POOL_NAME_PROPERTY, DEFAULT_CACHE_SIZE, DEFAULT_CONNECTION_POOL_NAME, DEFAULT_FORCE_FLUSH_INTERVAL, DEFAULT_TIME_INTERVAL, EVENT_SERVICE_FAILED, FLUSH_TIME_PROPERTY, FORCE_FLUSH_INTERVAL_PROPERTY, LISTENER_CREATE_EXCEPTION, PERSISTENCE_XML_CREATION_EXCEPTION, PERSISTER_SQL_EXCEPTION, SWEEPER_STARTUP_EXCEPTION, TRACKING_MESSAGE_CATALOG, TRACKING_PERSISTER_TYPES_PROPERTY
 
Method Summary
 void dispatchEvent(Event theEvent)
          Dispatch an event.
 void dispatchEvent(javax.servlet.http.HttpServletRequest theRequest, Event theEvent)
          Dispatch an event using an event service that is cached in theRequest.
 EventService getEventService()
          Get the event service.
 EventService getEventService(javax.servlet.http.HttpServletRequest theRequest)
          Get a new event service instance and set it in theRequest for later event dispatching.
static TrackingEventHelper getInstance()
          Get a singleton instance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

dispatchEvent

public void dispatchEvent(javax.servlet.http.HttpServletRequest theRequest,
                          Event theEvent)
Dispatch an event using an event service that is cached in theRequest.
Specified by:
dispatchEvent in interface TrackingEventHelper

dispatchEvent

public void dispatchEvent(Event theEvent)
Dispatch an event.
Specified by:
dispatchEvent in interface TrackingEventHelper

getEventService

public EventService getEventService(javax.servlet.http.HttpServletRequest theRequest)
                             throws java.rmi.RemoteException,
                                    javax.ejb.CreateException,
                                    ToolkitException
Get a new event service instance and set it in theRequest for later event dispatching.

getEventService

public EventService getEventService()
                             throws java.rmi.RemoteException,
                                    javax.ejb.CreateException,
                                    ToolkitException
Get the event service. Performs a JNDI lookup

getInstance

public static TrackingEventHelper getInstance()
Get a singleton instance

© 2001 BEA Systems, Inc.

Copyright © 2001 BEA Systems, Inc. All Rights Reserved