summaryrefslogtreecommitdiffstats
path: root/chain/src/main/java/com/yahoo/component/chain/dependencies/Provides.java
blob: 23becf6b4a774234fa24e5e6f6a17f2c9263c35a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.component.chain.dependencies;

import java.lang.annotation.*;

/**
 * Mark this component as providing some named functionality.
 * Other components can then mark themselves as "before" and "after" the string provided here,
 * to impose constraints on ordering.
 *
 * @author  tonytv
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@Inherited
public @interface Provides {
    public abstract String[] value() default {};
}