CommonSignManager.java 998 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /**
  2. * @(#)file SignManager.java
  3. * @(#)author DaeJin Lee
  4. * @(#)version 1.0
  5. * @(#)date Jun 10, 2005
  6. * @(#)since JDK 1.4.2
  7. *
  8. * Copyright (c) www.dcchem.co.kr, Inc.
  9. * All rights reserved.
  10. * This software is the proprietary information of dcchem, Inc.
  11. */
  12. package kr.co.udapsoft.common.commonSign;
  13. /**
  14. *
  15. * @version 1.0
  16. * @author DaeJin Lee
  17. */
  18. public class CommonSignManager {
  19. private CommonSignManager() {
  20. }
  21. /**
  22. * 결재를 처리하는 Driver를 리턴한다.
  23. * @param driverName
  24. * @return
  25. * @throws Exception
  26. */
  27. public static CommonSignInterface createSignDriver(String driverName) throws Exception {
  28. Class cls = Class.forName(driverName);
  29. Class[] argsTypes = new Class[0];
  30. java.lang.reflect.Constructor constructor = cls.getConstructor(argsTypes);
  31. Object[] args = new Object[0];
  32. CommonSignInterface driver = (CommonSignInterface)constructor.newInstance(args);
  33. return driver;
  34. }
  35. }