/** * Synchronized method used to return the single (static) instance of the class */ public static synchronized MessageIDGenerator getInstance() throws IOException { if (messageIdGenerator == null) messageIdGenerator = new MessageIDGenerator(); return messageIdGenerator; }//end method
/** * Synchronized method used to return the single (static) instance of the class */ public static synchronized MessageIDGenerator getInstance() throws IOException { if (messageIdGenerator == null) messageIdGenerator = new MessageIDGenerator(); return messageIdGenerator; }//end method