public abstract class ChainedComponent
extends com.yahoo.component.AbstractComponent
Modifier and Type | Field and Description |
---|---|
private Dependencies |
dependencies
The immutable set of dependencies of this.
|
Modifier | Constructor and Description |
---|---|
protected |
ChainedComponent() |
|
ChainedComponent(com.yahoo.component.ComponentId id) |
Modifier and Type | Method and Description |
---|---|
private static List<String> |
allOf(List<String> symbols,
String... otherSymbols) |
private static Collection<String> |
annotationSymbols(ChainedComponent component,
Class<? extends Annotation> annotationClass) |
protected Dependencies |
getAnnotatedDependencies(Class<? extends Annotation> providesClass,
Class<? extends Annotation> beforeClass,
Class<? extends Annotation> afterClass) |
protected Dependencies |
getDefaultAnnotatedDependencies()
This method is here only for legacy reasons, do not override.
|
Dependencies |
getDependencies()
Returns the configured and declared dependencies of this chainedcomponent
|
private static List<String> |
getSymbols(ChainedComponent component,
Class<? extends Annotation> annotationClass) |
void |
initDependencies(Dependencies dependencies)
Called by the container to assign the full set of dependencies to this class (configured and declared).
|
private Dependencies dependencies
public ChainedComponent(com.yahoo.component.ComponentId id)
protected ChainedComponent()
public void initDependencies(Dependencies dependencies)
dependencies
- The configured dependencies, that this method will merge with annotated dependencies.public Dependencies getDependencies()
protected Dependencies getDefaultAnnotatedDependencies()
protected Dependencies getAnnotatedDependencies(Class<? extends Annotation> providesClass, Class<? extends Annotation> beforeClass, Class<? extends Annotation> afterClass)
providesClass
- The annotation class representing 'provides'.beforeClass
- The annotation class representing 'before'.afterClass
- The annotation class representing 'after'.Dependencies
created from the annotations given in this component's class.private static List<String> getSymbols(ChainedComponent component, Class<? extends Annotation> annotationClass)
private static Collection<String> annotationSymbols(ChainedComponent component, Class<? extends Annotation> annotationClass)
Copyright © 2018. All rights reserved.