Class SystemAttributesExtractor
- java.lang.Object
-
- com.epam.reportportal.utils.properties.SystemAttributesExtractor
-
public class SystemAttributesExtractor extends java.lang.ObjectUtil for retrieving properties from `System` env variables and provided `resource` and converting them to theItemAttributesRQwithItemAttributesRQ.isSystem()='true'
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringATTRIBUTE_VALUE_SEPARATOR
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.Set<ItemAttributesRQ>extract(java.lang.String resource, java.lang.ClassLoader loader)Loads properties from the specified locationstatic java.util.Set<ItemAttributesRQ>extract(java.lang.String resource, java.lang.ClassLoader loader, PropertyHolder... propertyHolders)Loads properties from the specified locationstatic java.util.Set<ItemAttributesRQ>extract(java.nio.file.Path path)Loads properties from the specified locationstatic java.util.Set<ItemAttributesRQ>extract(java.nio.file.Path path, PropertyHolder... propertyHolders)Loads properties from the specified location
-
-
-
Field Detail
-
ATTRIBUTE_VALUE_SEPARATOR
public static final java.lang.String ATTRIBUTE_VALUE_SEPARATOR
- See Also:
- Constant Field Values
-
-
Method Detail
-
extract
public static java.util.Set<ItemAttributesRQ> extract(java.lang.String resource, java.lang.ClassLoader loader)
Loads properties from the specified location- Parameters:
resource- Path to the resource in classpathloader- context class loader, which is used by a specific agent implementation- Returns:
SetofItemAttributesRQ
-
extract
public static java.util.Set<ItemAttributesRQ> extract(java.lang.String resource, java.lang.ClassLoader loader, PropertyHolder... propertyHolders)
Loads properties from the specified location- Parameters:
resource- Path to the resource in classpathloader- context class loader, which is used by a specific agent implementationpropertyHolders- an array of specific properties we want to extract- Returns:
SetofItemAttributesRQ
-
extract
public static java.util.Set<ItemAttributesRQ> extract(java.nio.file.Path path)
Loads properties from the specified location- Parameters:
path- Path to the resource the file system- Returns:
SetofItemAttributesRQ
-
extract
public static java.util.Set<ItemAttributesRQ> extract(java.nio.file.Path path, PropertyHolder... propertyHolders)
Loads properties from the specified location- Parameters:
path- Path to the resource the file systempropertyHolders- an array of specific properties we want to extract- Returns:
SetofItemAttributesRQ
-
-