01: package tableapp.spec;
02:
03: /**
04: * <p>Title: </p>
05: * <p>Description: </p>
06: * <p>Copyright: Copyright (c) 2005</p>
07: * <p>Company: </p>
08: * @author not attributable
09: * @version 1.0
10: */
11:
12: public class AccessFactory {
13: /**
14: * Constructor can't be used.
15: */
16:
17: private AccessFactory() {
18: }
19:
20: /**
21: * Create a coin as state object/value object/data transfer object
22: */
23: public static Access createAccess(String fullClassName) {
24: Access result = null;
25: Class objectClass = null;
26:
27: try {
28: // Create the value object
29: objectClass = Class.forName(fullClassName);
30: result = (Access) objectClass.newInstance();
31: } catch (Exception ex) {
32: System.out.println("Error on creating the object" + ex);
33: }
34:
35: return result;
36: }
37:
38: }
|