All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.jrouter.interceptor.DefaultInterceptorStack Maven / Gradle / Ivy

Go to download

jrouter是一个围绕对象方法基于责任链(拦截器)模式设计的开源轻量级Java容器。它专注于方法的映射、调用、拦截和结果处理,采用基于配置和注解的方式来抽取和收集程序中对象的方法(method)以用于路由映射,HTTP控制器,RPC,各种应用等。

There is a newer version: 1.8.7
Show newest version
/*
 * Copyright (C) 2010-2111 [email protected]
 *
 * Licensed 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.
 *
 */
package net.jrouter.interceptor;

import net.jrouter.annotation.InterceptorStack;

/**
 * 内置拦截栈。
 */
public class DefaultInterceptorStack {

    /**
     * 空拦截栈名称,不包含任何拦截器。
     */
    @InterceptorStack(interceptors = {})
    public static final String EMPTY_INTERCEPTOR_STACK = "empty";

    /**
     * 示例拦截栈名称,包含日志拦截器和计时拦截器。
     *
     * @see SampleInterceptor#logging
     * @see SampleInterceptor#timer
     */
    @InterceptorStack(interceptors = {SampleInterceptor.LOGGING, SampleInterceptor.TIMER})
    public static final String SAMPLE_INTERCEPTOR_STACK = "sample";

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy