org.apache.lenya.cms.cocoon.selection
Class LastModSourceSelector
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.lenya.cms.cocoon.selection.LastModSourceSelector
- All Implemented Interfaces:
- org.apache.avalon.framework.activity.Disposable, org.apache.avalon.framework.component.Component, org.apache.avalon.framework.logger.LogEnabled, org.apache.avalon.framework.service.Serviceable, org.apache.avalon.framework.thread.ThreadSafe, org.apache.cocoon.selection.Selector
public class LastModSourceSelector
- extends org.apache.avalon.framework.logger.AbstractLogEnabled
- implements org.apache.avalon.framework.thread.ThreadSafe, org.apache.avalon.framework.service.Serviceable, org.apache.avalon.framework.activity.Disposable, org.apache.cocoon.selection.Selector
Last Modified Source Selector.
<map:selector name="last-mod" src="org.apache.lenya.cms.cocoon.selection.LastModSourceSelector"/>
<map:select type="last-mod">
<map:parameter name="compare-to" value="{sourceToCompareTo}"/>
<map:when test="cachedsource">
<!-- executes iff cachedsource last-modified > courceToCompareTo last-modified -->
<map:read src="{cachedsource}" mime-type="text/xml; charset=utf-8"/>
</map:when>
<map:otherwise>
<map:read src="{sourceToCompareTo}" mime-type="text/xml; charset=utf-8"/>
</map:otherwise>
</map:select>
Fields inherited from interface org.apache.cocoon.selection.Selector |
ROLE |
Method Summary |
void |
dispose()
|
boolean |
select(java.lang.String expression,
java.util.Map objectModel,
org.apache.avalon.framework.parameters.Parameters parameters)
|
void |
service(org.apache.avalon.framework.service.ServiceManager manager)
|
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LastModSourceSelector
public LastModSourceSelector()
service
public void service(org.apache.avalon.framework.service.ServiceManager manager)
throws org.apache.avalon.framework.service.ServiceException
- Specified by:
service
in interface org.apache.avalon.framework.service.Serviceable
- Throws:
org.apache.avalon.framework.service.ServiceException
dispose
public void dispose()
- Specified by:
dispose
in interface org.apache.avalon.framework.activity.Disposable
select
public boolean select(java.lang.String expression,
java.util.Map objectModel,
org.apache.avalon.framework.parameters.Parameters parameters)
- Specified by:
select
in interface org.apache.cocoon.selection.Selector
Copyright © 1999-2006 Apache Software Foundation. All Rights Reserved.