Skip to content

Commit

Permalink
Some more javadocs
Browse files Browse the repository at this point in the history
  • Loading branch information
HardNorth committed Dec 23, 2022
1 parent 97d7c04 commit 4278e54
Showing 1 changed file with 9 additions and 1 deletion.
Expand Up @@ -42,7 +42,7 @@
import static java.util.Optional.ofNullable;

/**
* Report portal listeners parameters
* Report portal client parameters. The class is a placeholder for client and agent parameters.
*/
public class ListenerParameters implements Cloneable {

Expand Down Expand Up @@ -153,6 +153,9 @@ private static Duration getDurationProperty(@Nonnull PropertiesLoader properties
)).orElse(null);
}

/**
* Create class instance with default parameters
*/
public ListenerParameters() {

this.isSkippedAnIssue = DEFAULT_SKIP_ISSUE;
Expand Down Expand Up @@ -188,6 +191,11 @@ public ListenerParameters() {
this.attributeLengthLimit = DEFAULT_TRUNCATE_ATTRIBUTE_LIMIT;
}

/**
* Create class instance with parameters from property source
*
* @param properties property source
*/
public ListenerParameters(PropertiesLoader properties) {
this.description = properties.getProperty(DESCRIPTION);
this.apiKey = ofNullable(properties.getProperty(API_KEY, properties.getProperty(UUID))).map(String::trim)
Expand Down

0 comments on commit 4278e54

Please sign in to comment.