router.1.7.4.source-code.jrouter.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jrouter Show documentation
Show all versions of jrouter Show documentation
jrouter是一个围绕对象方法基于责任链(拦截器)模式设计的开源轻量级Java容器。它专注于方法的映射、调用、拦截和结果处理,采用基于配置和注解的方式来抽取和收集程序中对象的方法(method)以用于路由映射,HTTP控制器,RPC,各种应用等。
<?xml version="1.0" encoding="UTF-8"?> <jrouter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="jrouter-1.6.xsd"> <!-- optional default --> <action-factory class="jrouter.impl.PathActionFactory"> <!-- optional default:null --> <property name="defaultInterceptorStack" value="empty"/> <!-- optional default:null --> <property name="defaultResultType" value="empty"/> <!-- optional default deprecated since 1.6.6 --> <!--<property name="actionInvocationClass" value="jrouter.impl.PathActionInvocation"/>--> <!-- optional default --> <property name="pathSeparator" value="/"/> <!-- optional default --> <property name="extension" value="."/> <!-- optional default --> <property name="actionCacheNumber" value="10000"/> <!-- optional default --> <property name="bytecode" value="javassist"/> <!-- optional default --> <property name="converterFactory" value="jrouter.impl.MultiParameterConverterFactory"/> <!-- optional default:null --> <property name="interceptorMethodChecker" value="jrouter.ActionInvocation.invoke(**)|jrouter.ActionInvocation.invokeActionOnly(**)"/> </action-factory> <!-- scan classes only in root configuration, use ',' as separate --> <component-scan package="jrouter , jrouter.impl" includeExpression="**.*Action" excludeExpression="**.*Result, **.*Interceptor" /> <!-- interceptor --> <interceptor class="jrouter.interceptor.SampleInterceptor"/> <!-- interceptor-stack --> <interceptor-stack class="jrouter.interceptor.DefaultInterceptorStack"/> <!-- result-type --> <result-type class="jrouter.result.DefaultResult"/> <!-- result --> <result class="jrouter.result.DefaultResult"/> <!-- actions --> <!-- add action tags --> <!-- include --> <!-- add included files --> <!-- aop only in root configuration, use ',' as separate --> <aop-config> <aop-action matches="/**" type="add-after" interceptor-stacks="empty" interceptors=""/> </aop-config> </jrouter>