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/security/src/test/org/apache/jetspeed/security/containers test.security.groovy
Date Thu, 11 Mar 2004 03:31:26 GMT
dlestrat    2004/03/10 19:31:26

  Modified:    components/security/src/test/org/apache/jetspeed/security/containers
                        test.security.groovy
  Log:
  Container assembly and Providers instantiation.
  
  Revision  Changes    Path
  1.2       +12 -2     jakarta-jetspeed-2/components/security/src/test/org/apache/jetspeed/security/containers/test.security.groovy
  
  Index: test.security.groovy
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/components/security/src/test/org/apache/jetspeed/security/containers/test.security.groovy,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- test.security.groovy	10 Mar 2004 06:09:25 -0000	1.1
  +++ test.security.groovy	11 Mar 2004 03:31:26 -0000	1.2
  @@ -1,8 +1,11 @@
   import org.picocontainer.defaults.DefaultPicoContainer
   
  -import org.apache.jetspeed.components.util.NanoQuickAssembler
   import java.io.File
   
  +import org.apache.jetspeed.components.util.NanoQuickAssembler
  +import org.apache.jetspeed.prefs.impl.PreferencesProviderImpl
  +import org.apache.jetspeed.security.impl.SecurityProviderImpl
  +
   // WARNING!!!!!!
   // DO NOT use {Class}.class as it appears to be broken in Groovy
   // You end getting a Class instance of the type java.lang.Class
  @@ -21,7 +24,7 @@
   NanoQuickAssembler.assemble(cl, "org/apache/jetspeed/containers/persistence.container.groovy",
container)
   
   //
  -// Preferences
  +// Preferences.
   //
   NanoQuickAssembler.assemble(cl, "org/apache/jetspeed/prefs/containers/prefs.container.groovy",
container)
   
  @@ -29,5 +32,12 @@
   // Security
   //
   NanoQuickAssembler.assemble(cl, "org/apache/jetspeed/security/containers/security.container.groovy",
container)
  +
  +// Instantiate the Preferences provider.
  +container.getComponentInstanceOfType(PreferencesProviderImpl)
  +
  +// Instantiate the Security provider.
  +container.getComponentInstanceOfType(SecurityProviderImpl)
  +
   
   return container
  
  
  

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