com.tobedevoured.command.CommandResourceLoader Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of core Show documentation
Show all versions of core Show documentation
Make Java do your bidding by turning any code into an executable
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;
}
}
}