blob: 414ee7267fdc5020667abf82f152024e354e8781 (
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
|
// Copyright Yahoo. 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.
*
* @author Tony Vaagenes
*/
// TODO: add support for component versions.
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 + "'"; }
}
|