public static PropertyFile[] findAll(ClassLoader loader, final String name)
	{
		try
		{
			final Enumeration<URL> urls = loader.getResources(name);

			List<PropertyFile> files = new ArrayList<PropertyFile>();

			for (URL url : ListUtility.iterate(urls))
			{
				InputStream is = null;
				try
				{
					is = url.openStream();
					final PropertyFile file = new PropertyFile(is);

					files.add(file);
				}
				catch (IOException e)
				{
					throw new RuntimeException("Error loading properties from " +
					                           url +
					                           " for name: " +
					                           name +
					                           ": " +
					                           e.getMessage(), e);
				}
				finally
				{
					IOUtils.closeQuietly(is);
				}
			}

			return files.toArray(new PropertyFile[files.size()]);
		}
		catch (IOException e)
		{
			throw new RuntimeException("Error loading properties for name: " + name + ": " + e.getMessage(), e);
		}
	}
public static PropertyFile [ ] findAll ( ClassLoader loader , final String name ) { try { final Enumeration < URL > urls = loader . getResources ( name ) ; List < PropertyFile > files = new ArrayList < PropertyFile > ( ) ; for ( URL url : ListUtility . iterate ( urls ) ) { InputStream is = null ; try { is = url . openStream ( ) ; final PropertyFile file = new PropertyFile ( is ) ; files . add ( file ) ; } catch ( IOException e ) { throw new RuntimeException ( "Error loading properties from " + url + " for name: " + name + ": " + e . getMessage ( ) , e ) ; } finally { IOUtils . closeQuietly ( is ) ; } } return files . toArray ( new PropertyFile [ files . size ( ) ] ) ; } catch ( IOException e ) { throw new RuntimeException ( "Error loading properties for name: " + name + ": " + e . getMessage ( ) , e ) ; } }
Find all property files by the name <code>name</code> by searching the specified classloader

@param loader
@param name

@return