portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dlest...@apache.org
Subject cvs commit: jakarta-jetspeed-2/components/prefs/src/java/org/apache/jetspeed/prefs/impl PreferencesProviderImpl.java
Date Wed, 10 Mar 2004 22:35:09 GMT
dlestrat    2004/03/10 14:35:09

  Modified:    components/prefs/src/java/org/apache/jetspeed/prefs/impl
                        PreferencesProviderImpl.java
  Log:
  Added logging.
  
  Revision  Changes    Path
  1.3       +9 -2      jakarta-jetspeed-2/components/prefs/src/java/org/apache/jetspeed/prefs/impl/PreferencesProviderImpl.java
  
  Index: PreferencesProviderImpl.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/components/prefs/src/java/org/apache/jetspeed/prefs/impl/PreferencesProviderImpl.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- PreferencesProviderImpl.java	10 Mar 2004 06:03:42 -0000	1.2
  +++ PreferencesProviderImpl.java	10 Mar 2004 22:35:09 -0000	1.3
  @@ -17,16 +17,21 @@
   import org.apache.jetspeed.prefs.PreferencesProvider;
   import org.apache.jetspeed.components.persistence.store.PersistenceStoreContainer;
   
  +import org.apache.commons.logging.Log;
  +import org.apache.commons.logging.LogFactory;
  +
   /**
    * @author <a href="">David Le Strat</a>
    *
    */
   public class PreferencesProviderImpl implements PreferencesProvider
   {
  +    /** Logger. */
  +    private static final Log log = LogFactory.getLog(PreferencesProviderImpl.class);
   
       /** The {@link PreferencesProvider} instance. */
       static PreferencesProvider prefProvider;
  -    
  +
       /** The persistence store container. */
       private PersistenceStoreContainer storeContainer;
   
  @@ -39,8 +44,9 @@
        */
       public PreferencesProviderImpl(PersistenceStoreContainer storeContainer, String storeKeyName,
String prefsFactoryImpl)
       {
  -        this.storeKeyName = storeKeyName;
  +        if (log.isDebugEnabled()) log.debug("Constructing PreferencesProviderImpl...");
           this.storeContainer = storeContainer;
  +        this.storeKeyName = storeKeyName;
           System.setProperty("java.util.prefs.PreferencesFactory", prefsFactoryImpl);
           PreferencesProviderImpl.prefProvider = this;
   
  @@ -61,4 +67,5 @@
       {
           return this.storeKeyName;
       }
  +
   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Mime
View raw message