portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wea...@apache.org
Subject cvs commit: jakarta-jetspeed-2/components/persistence/src/java/org/apache/jetspeed/containers persistence.container.groovy
Date Tue, 09 Mar 2004 16:16:14 GMT
weaver      2004/03/09 08:16:14

  Modified:    components/persistence/src/java/org/apache/jetspeed/containers
                        persistence.container.groovy
  Log:
  refactored to support container embedding via scripts
  
  Revision  Changes    Path
  1.4       +8 -4      jakarta-jetspeed-2/components/persistence/src/java/org/apache/jetspeed/containers/persistence.container.groovy
  
  Index: persistence.container.groovy
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/components/persistence/src/java/org/apache/jetspeed/containers/persistence.container.groovy,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- persistence.container.groovy	4 Mar 2004 21:20:07 -0000	1.3
  +++ persistence.container.groovy	9 Mar 2004 16:16:14 -0000	1.4
  @@ -1,18 +1,22 @@
   import org.picocontainer.defaults.DefaultPicoContainer
   import org.picocontainer.Parameter
   import org.picocontainer.defaults.ConstantParameter
  -//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.picocontainer.ComponentAdapter
   import org.picocontainer.defaults.ConstructorComponentAdapter
   
  +
   container = new DefaultPersistenceStoreContainer(15000, 10000)
  +if(parent != null) 
  +{
  + container.setParent(parent);
  + // make sure that this container is also registered as a component
  + // by its interface
  + parent.registerComponentInstance(PersistenceStoreContainer, container);
  +}
   
  -// Class OTMStoreClass = Class.forName("org.apache.jetspeed.components.persistence.store.ojb.otm.OTMStoreImpl")
   ComponentAdapter ca = new ConstructorComponentAdapter("jetspeed", PBStore, new Parameter[]
{new ConstantParameter("jetspeed")})
   
   container.registerComponent(ca)
  
  
  

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