org.broadleafcommerce.cms.page.message.jms
Class JMSArchivedPagePublisher

java.lang.Object
  extended by org.broadleafcommerce.cms.page.message.jms.JMSArchivedPagePublisher
All Implemented Interfaces:
ArchivedPagePublisher

public class JMSArchivedPagePublisher
extends Object
implements ArchivedPagePublisher

JMS implementation of ArchivedPagePublisher. Intended usage is to notify other VMs that a pageDTO needs to be evicted from cache. This occurs when the page is marked as archived - typically because a replacemet page has been promoted to production. Utilizes Spring JMS template pattern where template and destination are configured via Spring. Created by bpolster.


Constructor Summary
JMSArchivedPagePublisher()
           
 
Method Summary
 javax.jms.Destination getArchivePageDestination()
           
 org.springframework.jms.core.JmsTemplate getArchivePageTemplate()
           
 void processPageArchive(Page page, String basePageKey)
           
 void setArchivePageDestination(javax.jms.Destination archivePageDestination)
           
 void setArchivePageTemplate(org.springframework.jms.core.JmsTemplate archivePageTemplate)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JMSArchivedPagePublisher

public JMSArchivedPagePublisher()
Method Detail

processPageArchive

public void processPageArchive(Page page,
                               String basePageKey)
Specified by:
processPageArchive in interface ArchivedPagePublisher

getArchivePageTemplate

public org.springframework.jms.core.JmsTemplate getArchivePageTemplate()

setArchivePageTemplate

public void setArchivePageTemplate(org.springframework.jms.core.JmsTemplate archivePageTemplate)

getArchivePageDestination

public javax.jms.Destination getArchivePageDestination()

setArchivePageDestination

public void setArchivePageDestination(javax.jms.Destination archivePageDestination)


Copyright © 2012. All Rights Reserved.