Class DefaultProxyInfo

    • Method Detail

      • matches

        public boolean matches​(String rootID,
                               ComponentType rootType)
        Description copied from interface: ProxyInfo
        Check whether this proxy should be used for creating and accessing the given root ID and root type. The order of provided proxies is important as the first matching proxy will take precedence.
        Specified by:
        matches in interface ProxyInfo
        Parameters:
        rootID - root ID to match against
        rootType - root type to match against
        Returns:
        true if this proxy should be used for this ID and type
      • exec

        public Optional<ProxyInfo.Exec> exec()
        Description copied from interface: ProxyInfo
        Access an optional ProxyInfo.Exec implementation giving information about the process that should be executed when initializing this proxy.
        Specified by:
        exec in interface ProxyInfo
        Returns:
        optional exec
      • fromMap

        public static DefaultProxyInfo fromMap​(PMap conf)
        Parse a DefaultProxyInfo from a provided PMap.
        Parameters:
        conf - proxy info as PMap
        Returns:
        DefaultProxyInfo parsed from configuration map
        Throws:
        IllegalArgumentException - if map is incorrectly structured