All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.tobedevoured.command.CommandResourceLoader Maven / Gradle / Ivy

The newest version!
package com.tobedevoured.command;

import com.metapossum.utils.scanner.reflect.ClassResourceLoader;

/**
 * Scans the Classpath for @ByYourCommand anntotated Classes
 * 
 * @author Michael Guymon
 *
 */
public class CommandResourceLoader extends ClassResourceLoader {

	public CommandResourceLoader(ClassLoader classLoader, boolean includeInnerClasses) {
		super(classLoader, includeInnerClasses);
		
	}

	protected Class loadClassFromFile(String packageName, String fileName) {
		try {
			return super.loadClassFromFile(packageName, fileName);
		} catch ( Throwable throwable ) {
			return null;
		}
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy