Class SystemAttributesExtractor


  • public class SystemAttributesExtractor
    extends java.lang.Object
    Util for retrieving properties from `System` env variables and provided `resource` and converting them to the ItemAttributesRQ with ItemAttributesRQ.isSystem()='true'
    • 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 location
      static java.util.Set<ItemAttributesRQ> extract​(java.lang.String resource, java.lang.ClassLoader loader, PropertyHolder... propertyHolders)
      Loads properties from the specified location
      static java.util.Set<ItemAttributesRQ> extract​(java.nio.file.Path path)
      Loads properties from the specified location
      static java.util.Set<ItemAttributesRQ> extract​(java.nio.file.Path path, PropertyHolder... propertyHolders)
      Loads properties from the specified location
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 classpath
        loader - context class loader, which is used by a specific agent implementation
        Returns:
        Set of ItemAttributesRQ
      • 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 classpath
        loader - context class loader, which is used by a specific agent implementation
        propertyHolders - an array of specific properties we want to extract
        Returns:
        Set of ItemAttributesRQ
      • 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:
        Set of ItemAttributesRQ
      • 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 system
        propertyHolders - an array of specific properties we want to extract
        Returns:
        Set of ItemAttributesRQ