Interface InfraAdapter

All Known Implementing Classes:
EnvironmentAdapter

@SPI(scope=APPLICATION) public interface InfraAdapter
Used to interact with other systems. Typical use cases are: 1. get extra attributes from underlying infrastructures related to the instance on which Dubbo is currently deploying. 2. get configurations from third-party systems which maybe useful for a specific component.
  • Method Details

    • getExtraAttributes

      Map<String,String> getExtraAttributes(Map<String,String> params)
      get extra attributes
      Parameters:
      params - application name or hostname are most likely to be used as input params.
      Returns:
    • getAttribute

      String getAttribute(String key)
      Parameters:
      key -
      Returns: