blob: fc6f09cef24c2a63d31921463172293cbef829e6 (
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
|
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.config.application.api;
/**
* Describes a component residing in the components directory.
* <p>TODO: add support for component versions.</p>
* @author tonytv
*/
public class ComponentInfo {
final String pathRelativeToAppDir;
public ComponentInfo(String pathRelativeToAppDir) {
this.pathRelativeToAppDir = pathRelativeToAppDir;
}
//get path relative to app dir
public String getPathRelativeToAppDir() {
return pathRelativeToAppDir;
}
@Override
public String toString() { return "component at '" + pathRelativeToAppDir + "'"; }
}
|