List of usage examples for org.apache.shiro.util ClassUtils forName
public static Class forName(String fqcn) throws UnknownClassException
ClassUtils.class.getClassLoader()), then the system/application ClassLoader (ClassLoader.getSystemClassLoader(), in that order. From source file:com.flowlogix.web.services.internal.MixinAdderWorker.java
License:Apache License
/** * Determines if the mixin's container is a submit element *///from w ww . j ava2s. co m public static boolean isCorrectType(Class<?> componentType, String className) { Class<?> myClass = ClassUtils.forName(className); Class<?> componentClass = ClassUtils.forName(componentType.getName()); return componentClass.isAssignableFrom(myClass); }