private void tldScanClassPath(Bundle bundle) throws Exception {
ServiceReference reference = bundle.getBundleContext().getServiceReference(PackageAdmin.class.getName());
PackageAdmin packageAdmin = (PackageAdmin) bundle.getBundleContext().getService(reference);
BundleResourceFinder resourceFinder = new BundleResourceFinder(packageAdmin, bundle, "META-INF/", ".tld");
resourceFinder.find(new ResourceFinderCallback() {
public boolean foundInDirectory(Bundle bundle, String basePath, URL url) throws Exception {
tldScanStream(url, new TldLocation(url.getPath()));
return true;
}