| <!-- |
| 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. |
| --> |
| <catalog name="foo"> |
| |
| <!-- Define command and chain aliases --> |
| <define name="adding-command" |
| className="org.apache.commons.chain2.testutils.AddingCommand"/> |
| <define name="delegating-command" |
| className="org.apache.commons.chain2.testutils.DelegatingCommand"/> |
| <define name="delegating-filter" |
| className="org.apache.commons.chain2.testutils.DelegatingFilter"/> |
| <define name="exception-command" |
| className="org.apache.commons.chain2.testutils.ExceptionCommand"/> |
| <define name="exception-filter" |
| className="org.apache.commons.chain2.testutils.ExceptionFilter"/> |
| <define name="non-delegating-command" |
| className="org.apache.commons.chain2.testutils.NonDelegatingCommand"/> |
| <define name="non-delegating-filter" |
| className="org.apache.commons.chain2.testutils.NonDelegatingFilter"/> |
| <define name="test-chain" |
| className="org.apache.commons.chain2.config.xml.TestChain"/> |
| <define name="test-command" |
| className="org.apache.commons.chain2.config.xml.TestCommand"/> |
| |
| <!-- Single command "chains" from CatalogBaseTestCase --> |
| <adding-command |
| name="AddingCommand"/> |
| <delegating-command |
| name="DelegatingCommand"/> |
| <delegating-filter |
| name="DelegatingFilter"/> |
| <exception-command |
| name="ExceptionCommand"/> |
| <exception-filter |
| name="ExceptionFilter"/> |
| <non-delegating-command |
| name="NonDelegatingCommand"/> |
| <non-delegating-filter |
| name="NonDelegatingFilter"/> |
| <test-chain |
| name="ChainBase"/> |
| |
| <!-- Configurable command with settable properties --> |
| <test-command |
| name="Configurable" |
| foo="Foo Value" |
| bar="Bar Value"/> |
| |
| <!-- Chains with nested commands --> |
| <test-chain name="Execute2a"> |
| <delegating-command id="1"/> |
| <delegating-command id="2"/> |
| <non-delegating-command id="3"/> |
| </test-chain> |
| <test-chain name="Execute2b"> |
| <delegating-command id="1"/> |
| <delegating-command id="2"/> |
| <delegating-command id="3"/> |
| </test-chain> |
| <test-chain name="Execute2c"> |
| <delegating-command id="1"/> |
| <delegating-command id="2"/> |
| <exception-command id="3"/> |
| </test-chain> |
| <test-chain name="Execute2d"> |
| <delegating-command id="1"/> |
| <exception-command id="2"/> |
| <non-delegating-command id="3"/> |
| </test-chain> |
| <test-chain name="Execute4a"> |
| <delegating-filter id="1" |
| id2="a"/> |
| <delegating-command id="2"/> |
| <non-delegating-filter id="3" |
| id2="c"/> |
| </test-chain> |
| <test-chain name="Execute4b"> |
| <delegating-command id="1"/> |
| <delegating-filter id="2" |
| id2="b"/> |
| <delegating-command id="3"/> |
| </test-chain> |
| <test-chain name="Execute4c"> |
| <delegating-filter id="1" |
| id2="a"/> |
| <delegating-filter id="2" |
| id2="b"/> |
| <exception-filter id="3" |
| id2="c"/> |
| </test-chain> |
| <test-chain name="Execute4d"> |
| <delegating-filter id="1" |
| id2="a"/> |
| <exception-filter id="2" |
| id2="b"/> |
| <non-delegating-filter id="3" |
| id3="c"/> |
| </test-chain> |
| |
| </catalog> |