Class MergerFactory

java.lang.Object
org.apache.dubbo.rpc.cluster.merger.MergerFactory
All Implemented Interfaces:
org.apache.dubbo.rpc.model.ScopeModelAware

public class MergerFactory extends Object implements org.apache.dubbo.rpc.model.ScopeModelAware
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> Merger<T>
    getMerger(Class<T> returnType)
    Find the merger according to the returnType class, the merger will merge an array of returnType into one
    void
    setScopeModel(org.apache.dubbo.rpc.model.ScopeModel scopeModel)
     

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apache.dubbo.rpc.model.ScopeModelAware

    setApplicationModel, setFrameworkModel, setModuleModel
  • Constructor Details

    • MergerFactory

      public MergerFactory()
  • Method Details

    • setScopeModel

      public void setScopeModel(org.apache.dubbo.rpc.model.ScopeModel scopeModel)
      Specified by:
      setScopeModel in interface org.apache.dubbo.rpc.model.ScopeModelAware
    • getMerger

      public <T> Merger<T> getMerger(Class<T> returnType)
      Find the merger according to the returnType class, the merger will merge an array of returnType into one
      Parameters:
      returnType - the merger will return this type
      Returns:
      the merger which merges an array of returnType into one, return null if not exist
      Throws:
      IllegalArgumentException - if returnType is null