class SliceResourceScanner {

	public Collection<Class<?>> findSliceResources(Bundle bundle, String basePackage) {
		BundleClassesFinder classFinder = new BundleClassesFinder(basePackage);
		classFinder.addFilter(new SliceResourceFilter());

		LOG.info("Searching for classes annotated with SliceResource, packages: {}, bundle: {}", basePackage,
				bundle.getSymbolicName());

		Collection<Class<?>> classes = classFinder.getClasses(bundle);

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

		return classes;
	}

}