Skip to content

Commit

Permalink
[WFLY-4451] implement org.jboss.as.security.plugins.ModuleClassLoader…
Browse files Browse the repository at this point in the history
…Locator.CombinedClassLoader getResources(String)
  • Loading branch information
bmaxwell committed Mar 20, 2015
1 parent a381bd2 commit 6ae56fb
Showing 1 changed file with 14 additions and 1 deletion.
Expand Up @@ -22,8 +22,13 @@
package org.jboss.as.security.plugins;

import java.io.InputStream;
import java.io.IOException;
import java.net.URL;
import java.security.SecureClassLoader;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Enumeration;
import java.util.List;

import org.jboss.as.security.logging.SecurityLogger;
import org.jboss.modules.ModuleLoadException;
Expand Down Expand Up @@ -98,5 +103,13 @@ public InputStream getResourceAsStream(String name) {
}
return is;
}

@Override
public Enumeration<URL> getResources(String name) throws IOException {
List<URL> combinedList = new ArrayList<URL>();
combinedList.addAll(Collections.list(first.getResources(name)));
combinedList.addAll(Collections.list(second.getResources(name)));
return Collections.enumeration(combinedList);
}
}
}
}

0 comments on commit 6ae56fb

Please sign in to comment.