| <?xml version="1.0" encoding="UTF-8" ?> |
| <!-- |
| /* |
| * 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. |
| */ |
| --> |
| <!DOCTYPE struts PUBLIC |
| "-//Apache Software Foundation//DTD Struts Configuration 6.0//EN" |
| "https://struts.apache.org/dtds/struts-6.0.dtd"> |
| |
| <struts order="10"> |
| <constant name="struts.objectFactory" value="osgi" /> |
| <constant name="struts.objectFactory.delegate" value="struts" /> |
| <constant name="struts.freemarker.manager.classname" value="org.apache.struts2.osgi.BundleFreemarkerManager" /> |
| <constant name="struts.staticContentLoader" value="org.apache.struts2.osgi.loaders.StaticContentBundleResourceLoader" /> |
| |
| <constant name="struts.convention.action.includeJars" value="jar:file:.*?/bundles/.*?\.jar(!/)?" /> |
| |
| <bean type="org.apache.struts2.osgi.BundleAccessor" class="org.apache.struts2.osgi.DefaultBundleAccessor" /> |
| <bean type="org.apache.struts2.osgi.PackageLoader" class="org.apache.struts2.osgi.BundlePackageLoader" /> |
| |
| <bean name="osgi" type="com.opensymphony.xwork2.ObjectFactory" class="org.apache.struts2.osgi.DelegatingObjectFactory" /> |
| <bean name="springOsgi" type="com.opensymphony.xwork2.ObjectFactory" class="org.apache.struts2.osgi.SpringOsgiObjectFactory" /> |
| <bean name="osgi" type="com.opensymphony.xwork2.config.PackageProvider" class="org.apache.struts2.osgi.OsgiConfigurationProvider" /> |
| <bean name="osgi" type="com.opensymphony.xwork2.util.finder.ClassLoaderInterface" class="org.apache.struts2.osgi.BundleClassLoaderInterface" /> |
| |
| <package name="osgi-default" extends="struts-default" abstract="yes"> |
| <interceptors> |
| <interceptor name="osgi" class="org.apache.struts2.osgi.interceptor.OsgiInterceptor" /> |
| |
| <interceptor-stack name="osgiStack"> |
| <interceptor-ref name="defaultStack"/> |
| <interceptor-ref name="osgi"/> |
| </interceptor-stack> |
| </interceptors> |
| |
| <default-interceptor-ref name="osgiStack"/> |
| </package> |
| </struts> |