blob: 526e65146d9eeda7e141f419f47c4b30a10cc9ab (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
// 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.ordering;
/**
* A node containing nodes providing a given name.
*
* @author tonytv
*/
abstract class NameProvider extends Node {
final String name;
public NameProvider(String name, int priority) {
super(priority);
this.name = name;
}
protected abstract void addNode(ComponentNode<?> node);
protected String name() {
return name;
}
@Override
protected String dotName() {
return name;
}
}
|