com.ibm.commerce.event

Class DefaultEventPublisher

  • java.lang.Object
    • com.ibm.commerce.event.DefaultEventPublisher
  • All Implemented Interfaces:
    EventPublisher


    public class DefaultEventPublisher
    extends java.lang.Object
    implements EventPublisher
    This class defines the default event publisher. This default implementation will not publish the event.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT
      IBM copyright notice field.
    • Constructor Summary

      Constructors 
      Constructor and Description
      DefaultEventPublisher()
      This is the default constructor for this class.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void changePriority(java.lang.String eventName, java.lang.String eventKey, short priority)
      This method ignores the event.
      void publishEvent(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent commonBaseEvent)
      This method ignores the event.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM copyright notice field.
        See Also:
        Constant Field Values
    • Constructor Detail

      • DefaultEventPublisher

        public DefaultEventPublisher()
        This is the default constructor for this class. It calls the constructor from the superclass.
    • Method Detail

      • publishEvent

        public void publishEvent(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent commonBaseEvent)
        This method ignores the event. This implementation does not publish the event.
        Specified by:
        publishEvent in interface EventPublisher
        Parameters:
        commonBaseEvent - This is the common base event.
        See Also:
        com.ibm.commerce.context.audit.event.EventPublisher#publishEvent(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent)
      • changePriority

        public void changePriority(java.lang.String eventName,
                                   java.lang.String eventKey,
                                   short priority)
                            throws java.lang.Exception
        This method ignores the event. This implementation does nothing to change the event priority.
        Specified by:
        changePriority in interface EventPublisher
        Parameters:
        eventName - This is the name of the event.
        eventKey - This is an identifier of a maximum of 50 characters which can uniquely identify the event.
        priority - This is the new priority of the event. The priority value should either be EventService.PRIORITY_HIGH, EventService.PRIORITY_MEDIUM/ or EventService.PRIORITY_LOW.
        Throws:
        java.lang.Exception - This is thrown if any exception occurs while the event priority is being changed. For those cases where the event immediately executes, the listener may throw an exception and it will be exposed when this change occurs.