/** * Loads the Class object for the className. * @return * @throws Exception */ public Class load() throws Exception { if (loaderClass == null) { ClassPath classPath = SystemInstance.get().getClassPath(); ClassLoader classLoader = classPath.getClassLoader(); try { loaderClass = classLoader.loadClass(className); } catch (Exception e) { loaderClass = forcefulLoad(classPath, classLoader); } } return loaderClass; } /**
/** * Loads the Class object for the className. * * @return * @throws Exception */ public Class load() throws Exception { if (loaderClass == null) { final ClassPath classPath = SystemInstance.get().getClassPath(); final ClassLoader classLoader = classPath.getClassLoader(); try { loaderClass = classLoader.loadClass(className); } catch (final Exception e) { loaderClass = forcefulLoad(classPath, classLoader); } } return loaderClass; }
/** * Loads the Class object for the className. * * @return * @throws Exception */ public Class load() throws Exception { if (loaderClass == null) { final ClassPath classPath = SystemInstance.get().getClassPath(); final ClassLoader classLoader = classPath.getClassLoader(); try { loaderClass = classLoader.loadClass(className); } catch (final Exception e) { loaderClass = forcefulLoad(classPath, classLoader); } } return loaderClass; }