net.paoding.rose.jade.statement.interpreter.Interpreter Maven / Gradle / Ivy
/*
* Copyright 2009-2012 the original author or authors.
*
* 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 i 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.paoding.rose.jade.statement.interpreter;
import net.paoding.rose.jade.statement.StatementRuntime;
import org.springframework.core.annotation.Order;
/**
* 可用 {@link Order}来调节优先级,根据 {@link Order} 语义,值越小越有效;
*
* 如果没有标注 {@link Order} 使用默认值0。
*
* @author 王志亮 [[email protected]]
* @author 廖涵 [[email protected]]
*
*/
//按Spring语义规定,Order值越高该解释器越后执行
@Order(0)
public interface Interpreter {
/**
*
* @param runtime
*/
void interpret(StatementRuntime runtime);
}