1 /* 2 * Copyright (C) 2021 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 package com.android.bedstead.harrier.annotations; 18 19 /** Used to define the order in which the bedstead annotations are run.*/ 20 public final class AnnotationRunPrecedence { 21 // Use to ensure that an annotation is the first to run. 22 public static final int FIRST = 0; 23 // To run early in the order 24 public static final int EARLY = 5000; 25 // To run around the middle of the order 26 public static final int MIDDLE = 10000; 27 // To run late in the order 28 public static final int LATE = 15000; 29 // To be used when it does not matter when the annotation is run. 30 public static final int PRECEDENCE_NOT_IMPORTANT = 20000; 31 // Use to ensure that an annotation is the last to run. 32 public static final int LAST = Integer.MAX_VALUE; 33 } 34