Lines Matching defs:objType
241 public synchronized MXBeanMapping mappingForType(Type objType,
244 if (inProgress.containsKey(objType)) {
246 "Recursive data structure, including " + typeName(objType));
251 mapping = getMapping(objType);
255 inProgress.put(objType, objType);
257 mapping = makeMapping(objType, factory);
259 throw openDataException("Cannot convert type: " + typeName(objType), e);
261 inProgress.remove(objType);
264 putMapping(objType, mapping);
268 private MXBeanMapping makeMapping(Type objType, MXBeanMappingFactory factory)
274 if (objType instanceof GenericArrayType) {
276 ((GenericArrayType) objType).getGenericComponentType();
277 return makeArrayOrCollectionMapping(objType, componentType, factory);
278 } else if (objType instanceof Class<?>) {
279 Class<?> objClass = (Class<?>) objType;
294 } else if (objType instanceof ParameterizedType) {
295 return makeParameterizedTypeMapping((ParameterizedType) objType,
298 throw new OpenDataException("Cannot map type: " + objType);
355 makeTabularMapping(Type objType, boolean sortedMap,
360 final String objTypeName = typeName(objType);
373 return new TabularMapping(objType, sortedMap, tabularType,
383 makeParameterizedTypeMapping(ParameterizedType objType,
387 final Type rawType = objType.getRawType();
392 Type[] actuals = objType.getActualTypeArguments();
396 return makeArrayOrCollectionMapping(objType, actuals[0], factory);
400 Type[] actuals = objType.getActualTypeArguments();
404 return makeTabularMapping(objType, sortedMap,
409 throw new OpenDataException("Cannot convert type: " + objType);