private ArrayList<PluginInterface> setPlugins(String cpath) {
		ArrayList<PluginInterface> plugins = new ArrayList<PluginInterface>();
		try {
			File f = new File(cpath);
			String[] files = f.list();
			//
			if (files.length == 0) {
				log.error("not exists file in plugins dir.");
				return null;
			}
			for (int i = 0; i < files.length; i++) {
				if (files[i].endsWith(".jar")) {
					File file = new File(cpath + File.separator + files[i]);
					JarFile jar = new JarFile(file);
					Manifest mf = jar.getManifest();
					Attributes att = mf.getMainAttributes();
					String cname = att.getValue("Plugin-Class");
					URL url = file.getCanonicalFile().toURI().toURL();
					URLClassLoader loader = new URLClassLoader(new URL[] { url });
					Class cobj = loader.loadClass(cname);
					Class[] ifnames = cobj.getInterfaces();
					for (int j = 0; j < ifnames.length; j++) {
						if (ifnames[j] == PluginInterface.class) {
							System.out.println(ifnames[j]);
							System.out.println("load..... " + cname);
							PluginInterface plugin = (PluginInterface) cobj.newInstance();
							plugins.add(plugin);
							break;
						}
					}
				}
			}
		} catch (Exception ex) {
			ex.printStackTrace();
		}
		return plugins;
	}