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 based on their 20 * {@code priority} . 21 */ 22 public final class AnnotationPriorityRunPrecedence { 23 // Use to ensure that an annotation is the first to run. 24 public static final int FIRST = 0; 25 // To run early in the order 26 public static final int EARLY = 5000; 27 28 // To run around the middle of the order 29 public static final int MIDDLE = 10000; 30 // To run late in the order 31 public static final int LATE = 15000; 32 33 // To be used when it does not matter when the annotation is run. 34 public static final int PRECEDENCE_NOT_IMPORTANT = 20000; 35 // Use to ensure that an annotation is the last to run. 36 public static final int LAST = Integer.MAX_VALUE; 37 38 public static final int REQUIRE_RUN_ON_PRECEDENCE = EARLY - 1; 39 } 40