1 23 24 package com.sun.enterprise.admin.common.domains.registry; 25 class LockingStoreFactory 26 { 27 28 31 32 synchronized static LockingStore getInstance() { 33 if (instance == null){ 34 try { 35 instance = (LockingStore) Class.forName("com.sun.enterprise.admin.common.domains.registry.PersistentStore").newInstance(); 36 } catch (Exception e) { 37 System.err.println(e.getMessage()); 38 } 39 } 40 return instance; 41 } 42 43 private static LockingStore instance = null; 44 45 } 46 | Popular Tags |