@Test public void checkNamespaceAware() { JMSCacheMessageListener messageListener = (JMSCacheMessageListener) applicationContext.getBean ("cacheMessageListener"); assertNotNull(messageListener); }
protected boolean checkNamespaceAware() { try { Class.forName("com.tridion.util.NamespacePrefixWrapper", false, this.getClass().getClassLoader()); LOG.info("This tridion version is namespace aware (Tridion version is 8.5+)"); return true; } catch (ClassNotFoundException e) { LOG.info("This tridion version is not namespace aware (Tridion version is < 8.5)"); } return false; }
JMSCacheMessageListener implements MessageListener { protected boolean checkNamespaceAware() { try { Class.forName("com.tridion.util.NamespacePrefixWrapper", false, this.getClass().getClassLoader()); LOG.info("This tridion version is namespace aware (Tridion version is 8.5+)"); return true; } catch (ClassNotFoundException e) { LOG.info("This tridion version is not namespace aware (Tridion version is < 8.5)"); } return false; } }
JMSCacheMessageListener implements MessageListener { protected boolean checkNamespaceAware() { try { Class.forName("com.tridion.util.NamespacePrefixWrapper", false, this.getClass().getClassLoader()); LOG.info("This tridion version is namespace aware (Tridion version is 8.5+)"); return true; } catch (ClassNotFoundException e) { LOG.info("This tridion version is not namespace aware (Tridion version is < 8.5)"); } return false; } JMSCacheMessageListener(); }
JMSCacheMessageListener implements MessageListener { protected boolean checkNamespaceAware() { try { Class.forName("com.tridion.util.NamespacePrefixWrapper", false, this.getClass().getClassLoader()); LOG.info("This tridion version is namespace aware (Tridion version is 8.5+)"); return true; } catch (ClassNotFoundException e) { LOG.info("This tridion version is not namespace aware (Tridion version is < 8.5)"); } return false; } JMSCacheMessageListener(); void setMonitor(JMSCacheMonitor monitor); @Override void onMessage(Message message); void setCacheInvalidator(CacheInvalidator cacheAgent); }
JMSCacheMessageListener implements MessageListener { protected boolean checkNamespaceAware() { try { Class.forName("com.tridion.util.NamespacePrefixWrapper", false, this.getClass().getClassLoader()); LOG.info("This tridion version is namespace aware (Tridion version is 8.5+)"); return true; } catch (ClassNotFoundException e) { LOG.info("This tridion version is not namespace aware (Tridion version is < 8.5)"); } return false; } JMSCacheMessageListener(); void setMonitor(JMSCacheMonitor monitor); @Override void onMessage(Message message); void setCacheInvalidator(CacheInvalidator cacheAgent);  }