Properties manipulation

public static JdbcMySqlUtil getJdbcUtil() throws IOException,
   InstantiationException, IllegalAccessException,
   ClassNotFoundException {
  Properties prop = new Properties();
  InputStream is = new FileInputStream(new File(
    "resource/configure.properties"));
  prop.load(is);
  JdbcMySqlUtil jdbc = (JdbcMySqlUtil) Class.forName(
    prop.getProperty("ClassName")).newInstance();
  return jdbc;
 }
posted on 2010-07-10 21:10  sunliho  阅读(98)  评论(0编辑  收藏  举报