Source

xwork / src / test / com / opensymphony / xwork / config / providers / xwork-test-interceptor-inheritance.xml

Full commit
<!DOCTYPE xwork PUBLIC
    "-//OpenSymphony Group//XWork 1.1.1//EN"
    "http://www.opensymphony.com/xwork/xwork-1.1.1.dtd"
 >

<xwork>
    <package name="default">
        <interceptors>
            <interceptor name="timer" class="com.opensymphony.xwork.interceptor.TimerInterceptor"/>

            <interceptor-stack name="defaultStack">
                <interceptor-ref name="timer"/>
            </interceptor-stack>
        </interceptors>
    </package>

    <package name="subPackage" extends="default">
        <interceptors>
            <interceptor-stack name="subDefaultStack">
                <interceptor-ref name="defaultStack"/>
            </interceptor-stack>
        </interceptors>
    </package>

    <package name="subSubPackage" extends="subPackage">
        <interceptors>
            <interceptor-stack name="subSubDefaultStack">
                <interceptor-ref name="defaultStack"/>
                <interceptor-ref name="subDefaultStack"/>
            </interceptor-stack>
        </interceptors>
    </package>
</xwork>