/**
* @see BundleClassLoader#findEntries(String, String, int)
*/
public List<URL> findEntries(String path, String filePattern, int options) {
BaseAdaptor adaptor = getBaseData().getAdaptor();
List<BundleData> datas = new ArrayList<BundleData>();
// first get the host bundle file
datas.add(getBaseData());
// next get the attached fragments bundle files
FragmentClasspath[] currentFragments = getFragmentClasspaths();
for (FragmentClasspath fragmentClasspath : currentFragments)
datas.add(fragmentClasspath.getBundleData());
@SuppressWarnings("unchecked")
List<URL> result = Collections.EMPTY_LIST;
// now search over all the bundle files
Enumeration<URL> eURLs = adaptor.findEntries(datas, path, filePattern, options);
if (eURLs == null)
return result;
result = new ArrayList<URL>();
while (eURLs.hasMoreElements())
result.add(eURLs.nextElement());