-
Notifications
You must be signed in to change notification settings - Fork 397
/
Config.java
33 lines (23 loc) · 1.45 KB
/
Config.java
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
30
31
32
33
package io.openems.edge.controller.debuglog;
import org.osgi.service.metatype.annotations.AttributeDefinition;
import org.osgi.service.metatype.annotations.ObjectClassDefinition;
@ObjectClassDefinition(//
name = "Controller Debug Log", //
description = "This controller prints information about all available components on the console")
@interface Config {
@AttributeDefinition(name = "Component-ID", description = "Unique ID of this Component")
String id() default "ctrlDebugLog0";
@AttributeDefinition(name = "Alias", description = "Human-readable name of this Component; defaults to Component-ID")
String alias() default "";
@AttributeDefinition(name = "Is enabled?", description = "Is this Component enabled?")
boolean enabled() default true;
@AttributeDefinition(name = "Show Alias", description = "Print the Alias for each Component")
boolean showAlias() default false;
@AttributeDefinition(name = "Condensed output", description = "Print all logs in one joint line")
boolean condensedOutput() default true;
@AttributeDefinition(name = "Additional Channels", description = "Channel-Addresses of additional Channels that should be logged")
String[] additionalChannels() default {};
@AttributeDefinition(name = "Ignore Components", description = "Component-IDs of Components that should not be logged. Accepts '*' wildcard.")
String[] ignoreComponents() default {};
String webconsole_configurationFactory_nameHint() default "Controller Debug Log [{id}]";
}