Revision 2720ea2c
Added by Andreas Müller about 3 years ago
cdmlib-ext/src/main/java/eu/etaxonomy/cdm/ext/common/ServiceWrapperBase.java | ||
---|---|---|
32 | 32 |
/** |
33 | 33 |
* @author a.kohlbecker |
34 | 34 |
* @since 24.08.2010 |
35 |
* |
|
36 | 35 |
*/ |
37 | 36 |
public class ServiceWrapperBase<T extends CdmBase> { |
38 | 37 |
|
... | ... | |
71 | 70 |
|
72 | 71 |
public void addSchemaAdapter(SchemaAdapterBase schemaAdapter){ |
73 | 72 |
if(schemaAdapterMap == null){ |
74 |
schemaAdapterMap = new HashMap<String, SchemaAdapterBase<T>>();
|
|
73 |
schemaAdapterMap = new HashMap<>(); |
|
75 | 74 |
} |
76 | 75 |
schemaAdapterMap.put(schemaAdapter.getShortName(), schemaAdapter); |
77 | 76 |
} |
78 | 77 |
|
79 |
|
|
80 |
/** |
|
81 |
* @return the schemaAdapterMap |
|
82 |
*/ |
|
83 | 78 |
public Map<String, SchemaAdapterBase<T>> getSchemaAdapterMap() { |
84 | 79 |
return schemaAdapterMap; |
85 | 80 |
} |
... | ... | |
156 | 151 |
} |
157 | 152 |
} |
158 | 153 |
|
159 |
|
|
160 | 154 |
/** |
161 | 155 |
* Creates a {@link URI} based on the {@link ServiceWrapperBase#baseUrl} and the given subPath and qParams |
162 | 156 |
* @param subPath the sub path of the URI to be created |
... | ... | |
184 | 178 |
// |
185 | 179 |
// return uri; |
186 | 180 |
} |
187 |
|
|
188 |
|
|
189 | 181 |
} |
Also available in: Unified diff
cleanup