1 16 package org.apache.cocoon.portal.event.subscriber.impl; 17 18 import org.apache.cocoon.portal.PortalService; 19 import org.apache.cocoon.portal.event.Receiver; 20 import org.apache.cocoon.portal.event.impl.JXPathEvent; 21 import org.apache.commons.jxpath.JXPathContext; 22 23 29 public final class DefaultJXPathEventSubscriber 30 implements Receiver { 31 32 public DefaultJXPathEventSubscriber() { 33 } 35 36 39 public void inform(JXPathEvent event, PortalService service) { 40 final Object target = event.getTarget(); 41 if ( target != null ) { 42 final JXPathContext jxpathContext = JXPathContext.newContext(target); 43 jxpathContext.setValue(event.getPath(), event.getValue()); 44 } 45 } 46 47 } 48 | Popular Tags |