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/containers prefs.container.groovy
Date Sat, 06 Mar 2004 18:32:58 GMT
dlestrat    2004/03/06 10:32:58

  Modified:    components/prefs/src/java/org/apache/jetspeed/containers
                        prefs.container.groovy
  Log:
  Prefs container groovy script.
  
  Revision  Changes    Path
  1.4       +7 -3      jakarta-jetspeed-2/components/prefs/src/java/org/apache/jetspeed/containers/prefs.container.groovy
  
  Index: prefs.container.groovy
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/components/prefs/src/java/org/apache/jetspeed/containers/prefs.container.groovy,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- prefs.container.groovy	28 Feb 2004 16:33:56 -0000	1.3
  +++ prefs.container.groovy	6 Mar 2004 18:32:58 -0000	1.4
  @@ -12,13 +12,15 @@
   import org.apache.jetspeed.components.datasource.DatasourceComponent
   import org.apache.commons.pool.impl.GenericObjectPool
   import org.apache.jetspeed.components.persistence.store.ojb.OJBTypeIntializer
  -import org.apache.jetspeed.components.persistence.store.ojb.otm.OTMStoreImpl
  +import org.apache.jetspeed.components.persistence.store.ojb.pb.PBStore
   import org.apache.jetspeed.components.persistence.store.impl.DefaultPersistenceStoreContainer
   import org.apache.jetspeed.components.persistence.store.PersistenceStoreContainer
   import org.apache.jetspeed.components.util.system.FSSystemResourceUtilImpl
   
   import org.apache.jetspeed.prefs.PropertyManager
   import org.apache.jetspeed.prefs.impl.PropertyManagerImpl
  +import org.apache.jetspeed.prefs.PreferencesComponent
  +import org.apache.jetspeed.prefs.impl.PreferencesComponentImpl
   
   import java.io.File
   
  @@ -51,13 +53,15 @@
   
   //
   // Persistence
  -PersistenceContainer pContainer = new DefaultPersistenceStoreContainer(300000, 10000)
  +PersistenceStoreContainer pContainer = new DefaultPersistenceStoreContainer(300000, 10000)
   
  -ComponentAdapter ca = new ConstructorComponentAdapter("jetspeed", OTMStoreImpl, new Parameter[]
{new ConstantParameter("jetspeed")})
  +ComponentAdapter ca = new ConstructorComponentAdapter("jetspeed", PBStore, new Parameter[]
{new ConstantParameter("jetspeed")})
   
   pContainer.registerComponent(ca)
   
   container.registerComponentInstance(PersistenceStoreContainer, pContainer);
  +
  +container.registerComponentInstance(PreferencesComponent, new PreferencesComponentImpl(pContainer,
"jetspeed"))
   
   //
   // Property Manager
  
  
  

---------------------------------------------------------------------
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