code: public static List<String> getAllClassesInPackage(String packageName) {
  		List<String> classesNames = new Vector<>();
  		// create scanner and disable default filters (that is the 'false' argument)
  		final ClassPathScanningCandidateComponentProvider provider = new ClassPathScanningCandidateComponentProvider(false);
  		// add include filters which matches all the classes (or use your own)
  		provider.addIncludeFilter(new RegexPatternTypeFilter(Pattern.compile(".*")));
  
  		// get matching classes defined in the package
  		final Set<BeanDefinition> classes = provider.findCandidateComponents(packageName);
  
  		// this is how you can load the class type from BeanDefinition instance
  		for (BeanDefinition bean : classes) {
  			classesNames.add(bean.getBeanClassName());
  		}
  		return classesNames;
  	}
docs: Gets the all classes in package.
  
  @param packageName the package name
  @return the all classes in package