129130131132133134135136137138139
private Properties doFindFactoryProperties(String key) throws IOException { String uri = path + key; InputStream in = classResolver.loadResourceAsStream(uri); if (in == null) { throw new NoFactoryAvailableException(uri); } // lets load the file BufferedInputStream reader = null; try {
70717273747576777879
} finally { ObjectHelper.close(reader, key, null); ObjectHelper.close(in, key, null); } } else { throw new NoFactoryAvailableException(propertyPrefix + key); } } return clazz; }
6768697071727374757677
146147148149150151152153154155156
private Properties doFindFactoryProperties(String key) throws IOException { String uri = path + key; InputStream in = ObjectHelper.loadResourceAsStream(uri); if (in == null) { throw new NoFactoryAvailableException(uri); } // lets load the file BufferedInputStream reader = null; try {
5354555657585960
public Object newInstance(String key) throws NoFactoryAvailableException { try { return newInstance(key, null); } catch (Exception e) { throw new NoFactoryAvailableException(key, e); } }
135136137138139140141142143144145