log.debug("checking " + url.getFile() + " for configured types ...");
inputStream = url.openStream();
final ResourceBundle props = new PropertyResourceBundle(inputStream);
if (props != null) {
for (final Object o : props.keySet()) {
final String key = (String) o;
frameworkProps.put(key, props.getString(key));
if (key.equals(CONFIG_ERRAI_SERIALIZABLE_TYPE)) {
for (final String s : props.getString(key).split(" ")) {
try {
exposedClasses.add(MetaClassFactory.get(s.trim()));
explicitTypes.add(s.trim());
}
catch (Exception e) {
throw new RuntimeException("could not find class defined in ErraiApp.properties for serialization: " + s);
}
}
continue;
}
if (key.equals(CONFIG_ERRAI_NONSERIALIZABLE_TYPE)) {
for (final String s : props.getString(key).split(" ")) {
try {
nonportableClasses.add(MetaClassFactory.get(s.trim()));
}
catch (Exception e) {
throw new RuntimeException("could not find class defined in ErraiApp.properties as nonserializable: " + s);
}
}
continue;
}
if (key.equals(CONFIG_ERRAI_MAPPING_ALIASES)) {
for (final String s : props.getString(key).split(" ")) {
try {
final String[] mapping = s.split("->");
if (mapping.length != 2) {
throw new RuntimeException("syntax error: mapping for marshalling alias: " + s);