private static Class resolveClassForTypeName(String type, ClasspathImportService classpathImportService) { boolean isArray = false; if (type != null && EventTypeUtility.isPropertyArray(type)) { isArray = true; type = EventTypeUtility.getPropertyRemoveArray(type); } if (type == null) { throw new ConfigurationException("A null value has been provided for the type"); } Class clazz = JavaClassHelper.getClassForSimpleName(type, classpathImportService.getClassForNameProvider()); if (clazz == null) { return null; } if (isArray) { clazz = Array.newInstance(clazz, 0).getClass(); } return clazz; } }
boolean isArray = EventTypeUtility.isPropertyArray(typeNameSpec); if (isArray) { typeNameSpec = EventTypeUtility.getPropertyRemoveArray(typeNameSpec);
private static Class resolveClassForTypeName(String type, ClasspathImportService classpathImportService) { boolean isArray = false; if (type != null && EventTypeUtility.isPropertyArray(type)) { isArray = true; type = EventTypeUtility.getPropertyRemoveArray(type); } if (type == null) { throw new ConfigurationException("A null value has been provided for the type"); } Class clazz = JavaClassHelper.getClassForSimpleName(type, classpathImportService.getClassForNameProvider()); if (clazz == null) { throw new ConfigurationException("The type '" + type + "' is not a recognized type"); } if (isArray) { clazz = Array.newInstance(clazz, 0).getClass(); } return clazz; } }
boolean isArray = EventTypeUtility.isPropertyArray(propertyTypeName); if (isArray) { propertyTypeName = EventTypeUtility.getPropertyRemoveArray(propertyTypeName);
boolean isArray = EventTypeUtility.isPropertyArray(propertyTypeName); if (isArray) { propertyTypeName = EventTypeUtility.getPropertyRemoveArray(propertyTypeName);