diff options
Diffstat (limited to 'container-core/src/main/java/com/yahoo/component/chain/dependencies/Provides.java')
-rw-r--r-- | container-core/src/main/java/com/yahoo/component/chain/dependencies/Provides.java | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/container-core/src/main/java/com/yahoo/component/chain/dependencies/Provides.java b/container-core/src/main/java/com/yahoo/component/chain/dependencies/Provides.java new file mode 100644 index 00000000000..b014681c469 --- /dev/null +++ b/container-core/src/main/java/com/yahoo/component/chain/dependencies/Provides.java @@ -0,0 +1,20 @@ +// 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 Tony Vaagenes + */ +@Retention(RetentionPolicy.RUNTIME) +@Target(ElementType.TYPE) +@Inherited +public @interface Provides { + + String[] value() default {}; + +} |