@Test public void stripNamespaceIfRequired() { String key = "1:233:2222:64"; JMSCacheMessageListener messageListener = (JMSCacheMessageListener) applicationContext.getBean ("cacheMessageListener"); assertNotNull(messageListener); assertEquals("1:233:2222:64", messageListener.stripNamespaceIfRequired(key)); }
protected String stripNamespaceIfRequired(String key) { if (tridionIsNamespaceAware && isNotEmpty(key) && key.indexOf(":") > 0) { return key.substring(key.indexOf(":") + 1); } return key; }
JMSCacheMessageListener implements MessageListener { protected String stripNamespaceIfRequired(String key) { if (tridionIsNamespaceAware && isNotEmpty(key) && key.indexOf(":") > 0) { return key.substring(key.indexOf(":") + 1); } return key; } }
JMSCacheMessageListener implements MessageListener { protected String stripNamespaceIfRequired(String key) { if (tridionIsNamespaceAware && isNotEmpty(key) && key.indexOf(":") > 0) { return key.substring(key.indexOf(":") + 1); } return key; } JMSCacheMessageListener(); }
JMSCacheMessageListener implements MessageListener { protected String stripNamespaceIfRequired(String key) { if (tridionIsNamespaceAware && isNotEmpty(key) && key.indexOf(":") > 0) { return key.substring(key.indexOf(":") + 1); } return key; } JMSCacheMessageListener(); void setMonitor(JMSCacheMonitor monitor); @Override void onMessage(Message message); void setCacheInvalidator(CacheInvalidator cacheAgent); }
JMSCacheMessageListener implements MessageListener { protected String stripNamespaceIfRequired(String key) { if (tridionIsNamespaceAware && isNotEmpty(key) && key.indexOf(":") > 0) { return key.substring(key.indexOf(":") + 1); } return key; } JMSCacheMessageListener(); void setMonitor(JMSCacheMonitor monitor); @Override void onMessage(Message message); void setCacheInvalidator(CacheInvalidator cacheAgent);  }