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 PreferencesComponentImpl.java
Date Sat, 06 Mar 2004 18:31:41 GMT
dlestrat    2004/03/06 10:31:41

  Added:       components/prefs/src/java/org/apache/jetspeed/prefs/impl
                        PreferencesComponentImpl.java
  Log:
  Pico Prefs component impl.
  
  Revision  Changes    Path
  1.1                  jakarta-jetspeed-2/components/prefs/src/java/org/apache/jetspeed/prefs/impl/PreferencesComponentImpl.java
  
  Index: PreferencesComponentImpl.java
  ===================================================================
  /* Copyright 2004 Apache Software Foundation
   *
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   *
   *     http://www.apache.org/licenses/LICENSE-2.0
   *
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   */
  package org.apache.jetspeed.prefs.impl;
  
  import org.apache.jetspeed.prefs.PreferencesComponent;
  import org.apache.jetspeed.components.persistence.store.PersistenceStoreContainer;
  
  /**
   * @author <a href="">David Le Strat</a>
   *
   */
  public class PreferencesComponentImpl implements PreferencesComponent
  {
  
      /** The {@link PreferencesComponent} instance. */
      static PreferencesComponent prefComponent;
      
      /** The persistence store container. */
      private PersistenceStoreContainer storeContainer;
  
      /** The store name. */
      private String storeKeyName;
  
      /**
       * <p>Constructor providing the {@link PersistenceStoreContainer} 
       * and store key name.</p>
       */
      public PreferencesComponentImpl(PersistenceStoreContainer storeContainer, String storeKeyName)
      {
          this.storeKeyName = storeKeyName;
          this.storeContainer = storeContainer;
          PreferencesComponentImpl.prefComponent = this;
  
      }
  
      /**
       * @see org.apache.jetspeed.prefs.PreferencesComponent#getStoreContainer()
       */
      public PersistenceStoreContainer getStoreContainer()
      {
          return this.storeContainer;
      }
  
      /**
       * @see org.apache.jetspeed.prefs.PreferencesComponent#getStoreKeyName()
       */
      public String getStoreKeyName()
      {
          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