com.ibm.commerce.content.dynacache

Class CacheInvalOnAttachmentListener

  • java.lang.Object
    • com.ibm.commerce.event.EventComponentConfiguration
      • com.ibm.commerce.command.event.CommandExecutionEventListener
        • com.ibm.commerce.content.dynacache.CacheInvalOnAttachmentListener
  • All Implemented Interfaces:
    CacheInvalConstants, com.ibm.commerce.event.WCSEventListener, ComponentConfiguration, java.util.EventListener

    Deprecated. 
    Content Spots have been deprecated. For more information, see Content Spots.

    public class CacheInvalOnAttachmentListener
    extends com.ibm.commerce.command.event.CommandExecutionEventListener
    implements CacheInvalConstants
    Listener to invalidate Content cache when Attachment commands are exited
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method and Description
      void enable(boolean _enable)
      Deprecated. 
      Enables the command execution listener.
      void processActivityEvent(com.ibm.commerce.event.WCSEvent aEvent)
      Deprecated. 
      Processes Attachment command event by removing the Content cache associated with that attachment.
      • Methods inherited from class com.ibm.commerce.command.event.CommandExecutionEventListener

        destroy, getEventClass, isTransactionRequired, processEvent
      • Methods inherited from class com.ibm.commerce.event.EventComponentConfiguration

        init
      • 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
        Deprecated. 
        The IBM copyright notice.
        See Also:
        Constant Field Values
    • Constructor Detail

      • CacheInvalOnAttachmentListener

        public CacheInvalOnAttachmentListener()
        Deprecated. 
        Creates an instance of the listener.
    • Method Detail

      • enable

        public void enable(boolean _enable)
                    throws java.lang.Exception
        Deprecated. 
        Enables the command execution listener.
        Specified by:
        enable in interface ComponentConfiguration
        Overrides:
        enable in class com.ibm.commerce.command.event.CommandExecutionEventListener
        Parameters:
        enable - true if the listener is to be enabled
        Throws:
        java.lang.Exception - thrown while adding and removing event listener.
      • processActivityEvent

        public void processActivityEvent(com.ibm.commerce.event.WCSEvent aEvent)
                                  throws ECException
        Deprecated. 
        Processes Attachment command event by removing the Content cache associated with that attachment.
        Specified by:
        processActivityEvent in interface com.ibm.commerce.event.WCSEventListener
        Overrides:
        processActivityEvent in class com.ibm.commerce.command.event.CommandExecutionEventListener
        Parameters:
        aEvent - An event to process.
        Throws:
        ECException