@Test public void setParameter() throws Exception { MethodConfig methodConfig = new MethodConfig(); Assert.assertNull(methodConfig.parameters); Assert.assertNull(methodConfig.getParameter("aa")); methodConfig.setName("echo"); methodConfig.setParameter("aa", "11"); Assert.assertNotNull(methodConfig.parameters); Assert.assertEquals(methodConfig.getParameter("aa"), "11"); }
public MethodConfig setParameter(String key, String value) { if (parameters == null) { parameters = new ConcurrentHashMap<String, String>(); } parameters.put(key, value); return this; }
MethodConfig implements Serializable { public MethodConfig setParameter(String key, String value) { if (parameters == null) { parameters = new ConcurrentHashMap<String, String>(); } parameters.put(key, value); return this; } }
MethodConfig implements Serializable { public MethodConfig setParameter(String key, String value) { if (parameters == null) { parameters = new ConcurrentHashMap<String, String>(); } parameters.put(key, value); return this; }  }
MethodConfig implements Serializable { public MethodConfig setParameter(String key, String value) { if (parameters == null) { parameters = new ConcurrentHashMap<String, String>(); } parameters.put(key, value); return this; }  String getName(); MethodConfig setName(String name); Map<String, String> getParameters(); MethodConfig setParameters(Map<String, String> parameters); Integer getTimeout(); MethodConfig setTimeout(Integer timeout); Integer getRetries(); MethodConfig setRetries(Integer retries); String getInvokeType(); MethodConfig setInvokeType(String invokeType); Integer getConcurrents(); MethodConfig setConcurrents(Integer concurrents); Boolean getCache(); MethodConfig setCache(Boolean cache); MethodConfig setValidation(Boolean validation); Boolean getValidation(); SofaResponseCallback getOnReturn(); MethodConfig setOnReturn(SofaResponseCallback onReturn); String getCompress(); MethodConfig setCompress(String compress); Integer getDstParam(); MethodConfig setDstParam(Integer dstParam); MethodConfig setParameter(String key, String value); String getParameter(String key); }
MethodConfig implements Serializable { public MethodConfig setParameter(String key, String value) { if (parameters == null) { parameters = new ConcurrentHashMap<String, String>(); } parameters.put(key, value); return this; }  String getName(); MethodConfig setName(String name); Map<String, String> getParameters(); MethodConfig setParameters(Map<String, String> parameters); Integer getTimeout(); MethodConfig setTimeout(Integer timeout); Integer getRetries(); MethodConfig setRetries(Integer retries); String getInvokeType(); MethodConfig setInvokeType(String invokeType); Integer getConcurrents(); MethodConfig setConcurrents(Integer concurrents); Boolean getCache(); MethodConfig setCache(Boolean cache); MethodConfig setValidation(Boolean validation); Boolean getValidation(); SofaResponseCallback getOnReturn(); MethodConfig setOnReturn(SofaResponseCallback onReturn); String getCompress(); MethodConfig setCompress(String compress); Integer getDstParam(); MethodConfig setDstParam(Integer dstParam); MethodConfig setParameter(String key, String value); String getParameter(String key);  }