class OsgiServiceScanner {

	public Collection<Class<?>> findResources(String bundleNameFilter, String basePackage) {
		BundleFinder bundleFinder = new BundleFinder(new BundleInfo(bundleNameFilter, basePackage),
				bundleContext);
		BundleClassesFinder classFinder = new BundleClassesFinder(basePackage);
		classFinder.addFilter(new ClassFilter() {

			@Override
			public boolean accepts(ClassReader classReader) {
				// accept all classes
				return true;
			}
		});
		LOG.info("Searching for @OsgiServices, packages:{}, bundles:{}" + basePackage, bundleNameFilter);

		Collection<Class<?>> classes = classFinder.traverseBundlesForOsgiServices(bundleFinder.findBundles());

		LOG.info("Found {} OsgiService classes. Switch to debug logging level to see them all.",
				classes.size());
		return classes;
	}

	public  OsgiServiceScanner(BundleContext bundleContext);

}