Class MergerFactory
java.lang.Object
org.apache.dubbo.rpc.cluster.merger.MergerFactory
- All Implemented Interfaces:
org.apache.dubbo.rpc.model.ScopeModelAware
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> Merger<T> Find the merger according to the returnType class, the merger will merge an array of returnType into onevoidsetScopeModel(org.apache.dubbo.rpc.model.ScopeModel scopeModel) Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
setScopeModelin interfaceorg.apache.dubbo.rpc.model.ScopeModelAware
-
getMerger
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
-