| <?xml version="1.0"?> |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| |
| <!-- |
| - SVN $Id$ |
| --> |
| <xconf xpath="/cocoon" |
| unless="component[@role='org.apache.cocoon.components.source.helpers.SourceRefresher/Delay']"> |
| <!--+ |
| | A SourceRefresher is a component that is used by the CachingSource protocol. |
| | It is responsible for updating the cached contents of sources that are |
| | registered with it by the protocol. |
| | |
| | The DelaySourceRefresher is an implementation that periodically updates the |
| | sources. It recognizes the following parameters: |
| | - 'write-interval' (0). The SourceRefresher can periodically persist its |
| | list of registered sources. This parameter specifies how often |
| | it should write this list to file. Specifying a value of 0 (the default) |
| | means that target configurations will not be persisted at all. |
| | - 'write-file' (refresher-targets.xml). Specifying a different value |
| | than the default for this parameter only makes sense if you configure |
| | more than one DelayRefreshers. It represents the file name, relative to |
| | the cocoon working directory of the file the refresher writes its list |
| | of registered target configurations to. |
| +--> |
| <component role="org.apache.cocoon.components.source.helpers.SourceRefresher/Delay" |
| class="org.apache.cocoon.components.source.helpers.DelaySourceRefresher" |
| logger="core.refresher.delay"> |
| <!-- |
| <parameter name="write-interval" value="0"/> |
| <parameter name="write-file" value="refresher-targets.xml"/> |
| --> |
| </component> |
| |
| </xconf> |