Login | Register
My pages Projects Community openCollabNet

Discussions > cvs > CVS update: joist/java/org/joist/util JoistProperties.java

Project highlights: Architectural Overview

joist
Discussion topic

Back to topic list

CVS update: joist/java/org/joist/util JoistProperties.java

Author stack
Full name Michael Stack
Date 2000-11-12 12:23:08 PST
Message User: stack
  Date: 00/11/12 12:23:08

  Modified: java/org/joist/util JoistProperties.java
  Log:
  Added private constructor -- else there is a hole in singleton pattern intent
  
  Revision Changes Path
  1.7 +14 -1 joist/java/org/joist​/util/JoistPropertie​s.java
  
  Index: JoistProperties.java
  ====================​====================​====================​=======
  RCS file: /cvs/joist/java/org/​joist/util/JoistProp​erties.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- JoistProperties.java 2000/11/06 06:41:49 1.6
  +++ JoistProperties.java 2000/11/12 20:23:08 1.7
  @@ -57,7 +57,7 @@
    *
    * @author David C. Pellegrini <A HREF="mailto:davidp@​dataweb-systems.com"​>davidp@dataweb-s​ystems.com</A>​
    * @author <a href="mailto:dlr@dat​aweb-systems.com"​>Daniel Rall</a>
  - * @version $Revision: 1.6 $
  + * @version $Revision: 1.7 $
    *
    * Copyright (c) 1999 dataweb systems, inc.
    * Copyright (c) 1999, 2000 CollabNet, Inc.
  @@ -82,6 +82,19 @@
        * Private state.
        */
       private Properties properties;
  +
  +
  + /** Constructor.
  + * Make a private constructor else it's possible to get an instance
  + * of this class w/ 'new JoistProperties'. Needed because intent is
  + * the singleton pattern w/ this.getInstance( ) as the sole method
  + * to a single instance.
  + */
  + private JoistProperties( )
  + {
  + super( );
  + }
  +
       
       /**
        * Configures and returns the singleton instance of JoistProperties

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

CVS update: joist/java/org/joist/util JoistProperties.java stack Michael Stack 2000-11-12 12:23:08 PST
Messages per page: