]> source.dussan.org Git - archiva.git/commitdiff
package move to o.a.a.r module redback-common-jdo
authorOlivier Lamy <olamy@apache.org>
Sat, 7 Apr 2012 21:07:37 +0000 (21:07 +0000)
committerOlivier Lamy <olamy@apache.org>
Sat, 7 Apr 2012 21:07:37 +0000 (21:07 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1310867 13f79535-47bb-0310-9956-ffa450edef68

redback-common/redback-common-jdo/src/main/java/org/apache/archiva/redback/common/jdo/UserConfigurableJdoFactory.java [new file with mode: 0644]
redback-common/redback-common-jdo/src/main/java/org/apache/archiva/redback/common/jdo/test/StoreManagerDebug.java [new file with mode: 0644]
redback-common/redback-common-jdo/src/main/java/org/codehaus/plexus/redback/common/jdo/UserConfigurableJdoFactory.java [deleted file]
redback-common/redback-common-jdo/src/main/java/org/codehaus/plexus/redback/common/jdo/test/StoreManagerDebug.java [deleted file]
redback-common/redback-common-jdo/src/main/resources/META-INF/spring-context.xml
redback-data-management/src/test/java/org/codehaus/plexus/redback/management/DataManagementTest.java
redback-data-management/src/test/resources/spring-context.xml
redback-integrations/redback-struts2/redback-struts2-integration/src/test/resources/spring-context.xml
redback-rbac/redback-rbac-providers/redback-rbac-jdo/src/test/java/org/codehaus/plexus/redback/rbac/jdo/JdoRbacManagerTest.java
redback-users/redback-users-providers/redback-users-jdo/src/test/java/org/apache/archiva/redback/users/jdo/JdoUserManagerTest.java
redback-users/redback-users-providers/redback-users-jdo/src/test/resources/spring-context.xml

diff --git a/redback-common/redback-common-jdo/src/main/java/org/apache/archiva/redback/common/jdo/UserConfigurableJdoFactory.java b/redback-common/redback-common-jdo/src/main/java/org/apache/archiva/redback/common/jdo/UserConfigurableJdoFactory.java
new file mode 100644 (file)
index 0000000..9dea720
--- /dev/null
@@ -0,0 +1,128 @@
+package org.apache.archiva.redback.common.jdo;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you 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.
+ */
+
+import org.apache.commons.lang.StringUtils;
+import org.codehaus.plexus.interpolation.InterpolationException;
+import org.codehaus.plexus.interpolation.PropertiesBasedValueSource;
+import org.codehaus.plexus.interpolation.StringSearchInterpolator;
+import org.codehaus.plexus.jdo.DefaultConfigurableJdoFactory;
+import org.codehaus.plexus.redback.configuration.UserConfiguration;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import org.springframework.stereotype.Service;
+
+import javax.annotation.PostConstruct;
+import javax.inject.Inject;
+import javax.inject.Named;
+
+/**
+ * UserConfigurableJdoFactory
+ *
+ * @author <a href="mailto:joakim@erdfelt.com">Joakim Erdfelt</a>
+ * @version $Id$
+ */
+@Service( "jdoFactory#users" )
+public class UserConfigurableJdoFactory
+    extends DefaultConfigurableJdoFactory
+{
+
+    private Logger log = LoggerFactory.getLogger( getClass() );
+
+    @Inject
+    @Named( value = "userConfiguration" )
+    private UserConfiguration config;
+
+    private String getConfigString( String key, String currentValue, String defaultValue )
+    {
+        String valueFromSysProps = System.getProperty( "redback." + key );
+        if (StringUtils.isNotEmpty( valueFromSysProps ))
+        {
+            return valueFromSysProps;
+        }
+        String value = null;
+        if ( StringUtils.isNotEmpty( currentValue ) )
+        {
+            value = config.getString( key, currentValue );
+        }
+        else
+        {
+            value = config.getString( key, defaultValue );
+        }
+        // do some interpolation as we can have some ${plexus.home} etc...
+        StringSearchInterpolator interpolator = new StringSearchInterpolator();
+        interpolator.addValueSource( new PropertiesBasedValueSource( System.getProperties() ) );
+
+        try
+        {
+            return interpolator.interpolate( value );
+        }
+        catch ( InterpolationException e )
+        {
+            // ignore interpolation issue
+            log.warn( "skip issue during interpolation " + e.getMessage() );
+            return value;
+        }
+    }
+
+    @PostConstruct
+    public void initialize()
+    {
+        String jdbcDriverName =
+            getConfigString( "jdbc.driver.name", super.getDriverName(), "org.apache.derby.jdbc.EmbeddedDriver" );
+        String jdbcUrl =
+            getConfigString( "jdbc.url", super.getUrl(), "jdbc:derby:${plexus.home}/database;create=true" );
+
+        String jdbcUsername = getConfigString( "jdbc.username", super.getUserName(), "sa" );
+        String jdbcPassword = getConfigString( "jdbc.password", super.getPassword(), "" );
+
+        super.setDriverName( jdbcDriverName );
+        super.setUrl( jdbcUrl );
+        super.setUserName( jdbcUsername );
+        super.setPassword( jdbcPassword );
+
+        if ( StringUtils.isEmpty( super.persistenceManagerFactoryClass ) )
+        {
+            super.setPersistenceManagerFactoryClass( "org.jpox.PersistenceManagerFactoryImpl" );
+        }
+
+        if ( ( super.otherProperties == null ) || super.otherProperties.isEmpty() )
+        {
+            super.setProperty( "org.jpox.autoCreateSchema", "true" );
+            super.setProperty( "org.jpox.validateSchema", "false" );
+            super.setProperty( "org.jpox.validateTables", "false" );
+            super.setProperty( "org.jpox.validateConstraints", "false" );
+            super.setProperty( "org.jpox.transactionIsolation", "READ_COMMITTED" );
+            super.setProperty( "org.jpox.rdbms.dateTimezone", "JDK_DEFAULT_TIMEZONE" );
+        }
+
+        super.initialize();
+    }
+
+    public UserConfiguration getConfig()
+    {
+        return config;
+    }
+
+    public void setConfig( UserConfiguration config )
+    {
+        this.config = config;
+    }
+}
diff --git a/redback-common/redback-common-jdo/src/main/java/org/apache/archiva/redback/common/jdo/test/StoreManagerDebug.java b/redback-common/redback-common-jdo/src/main/java/org/apache/archiva/redback/common/jdo/test/StoreManagerDebug.java
new file mode 100644 (file)
index 0000000..29cb7fd
--- /dev/null
@@ -0,0 +1,113 @@
+package org.apache.archiva.redback.common.jdo.test;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you 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.
+ */
+
+import java.sql.PreparedStatement;
+import java.sql.ResultSet;
+import java.sql.SQLException;
+
+import javax.jdo.PersistenceManager;
+
+import org.jpox.AbstractPersistenceManagerFactory;
+import org.jpox.ClassLoaderResolver;
+import org.jpox.plugin.ConfigurationElement;
+import org.jpox.plugin.Extension;
+import org.jpox.store.rdbms.RDBMSManager;
+
+/**
+ * A extension to JPOX store manager that allows counting the SQL queries
+ * 
+ * @author Carlos Sanchez <a href="mailto:carlos@apache.org">
+ */
+public class StoreManagerDebug
+    extends RDBMSManager
+{
+    private static int counter;
+
+    public StoreManagerDebug( ClassLoaderResolver clr, AbstractPersistenceManagerFactory pmf, String userName,
+                              String password )
+    {
+        super( clr, pmf, userName, password );
+    }
+
+    /**
+     * This method will change JPOX store manager extension so it uses our class instead of whatever is configured in
+     * the plugin.xml
+     * 
+     * @param pmf
+     */
+    public static void setup( AbstractPersistenceManagerFactory pmf )
+    {
+        /* set our own Store Manager to allow counting SQL statements */
+        Extension[] extensions =
+            pmf.getPMFContext().getPluginManager().getExtensionPoint( "org.jpox.store_manager" ).getExtensions();
+        Extension e = extensions[0];
+        for ( ConfigurationElement element : e.getConfigurationElements() )
+        {
+            element.putAttribute( "class-name", StoreManagerDebug.class.getName() );
+        }
+    }
+
+    /**
+     * Get the currently configured store manager from JPOX. Will fail if
+     * {@link #setup(AbstractPersistenceManagerFactory)} is not called first.
+     * 
+     * @param persistenceManager
+     * @return
+     */
+    public static StoreManagerDebug getConfiguredStoreManager( PersistenceManager persistenceManager )
+    {
+        return (StoreManagerDebug) ( (org.jpox.PersistenceManager) persistenceManager ).getStoreManager();
+    }
+
+    @Override
+    public int[] executeStatementBatch( String stmt, PreparedStatement ps )
+        throws SQLException
+    {
+        counter++;
+        return super.executeStatementBatch( stmt, ps );
+    }
+
+    @Override
+    public ResultSet executeStatementQuery( String stmt, PreparedStatement ps )
+        throws SQLException
+    {
+        counter++;
+        return super.executeStatementQuery( stmt, ps );
+    }
+
+    @Override
+    public int executeStatementUpdate( String stmt, PreparedStatement ps )
+        throws SQLException
+    {
+        counter++;
+        return super.executeStatementUpdate( stmt, ps );
+    }
+
+    public void resetCounter()
+    {
+        counter = 0;
+    }
+
+    public int counter()
+    {
+        return counter;
+    }
+}
diff --git a/redback-common/redback-common-jdo/src/main/java/org/codehaus/plexus/redback/common/jdo/UserConfigurableJdoFactory.java b/redback-common/redback-common-jdo/src/main/java/org/codehaus/plexus/redback/common/jdo/UserConfigurableJdoFactory.java
deleted file mode 100644 (file)
index d3bf175..0000000
+++ /dev/null
@@ -1,128 +0,0 @@
-package org.codehaus.plexus.redback.common.jdo;
-
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you 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.
- */
-
-import org.apache.commons.lang.StringUtils;
-import org.codehaus.plexus.interpolation.InterpolationException;
-import org.codehaus.plexus.interpolation.PropertiesBasedValueSource;
-import org.codehaus.plexus.interpolation.StringSearchInterpolator;
-import org.codehaus.plexus.jdo.DefaultConfigurableJdoFactory;
-import org.codehaus.plexus.redback.configuration.UserConfiguration;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-import org.springframework.stereotype.Service;
-
-import javax.annotation.PostConstruct;
-import javax.inject.Inject;
-import javax.inject.Named;
-
-/**
- * UserConfigurableJdoFactory
- *
- * @author <a href="mailto:joakim@erdfelt.com">Joakim Erdfelt</a>
- * @version $Id$
- */
-@Service( "jdoFactory#users" )
-public class UserConfigurableJdoFactory
-    extends DefaultConfigurableJdoFactory
-{
-
-    private Logger log = LoggerFactory.getLogger( getClass() );
-
-    @Inject
-    @Named( value = "userConfiguration" )
-    private UserConfiguration config;
-
-    private String getConfigString( String key, String currentValue, String defaultValue )
-    {
-        String valueFromSysProps = System.getProperty( "redback." + key );
-        if (StringUtils.isNotEmpty( valueFromSysProps ))
-        {
-            return valueFromSysProps;
-        }
-        String value = null;
-        if ( StringUtils.isNotEmpty( currentValue ) )
-        {
-            value = config.getString( key, currentValue );
-        }
-        else
-        {
-            value = config.getString( key, defaultValue );
-        }
-        // do some interpolation as we can have some ${plexus.home} etc...
-        StringSearchInterpolator interpolator = new StringSearchInterpolator();
-        interpolator.addValueSource( new PropertiesBasedValueSource( System.getProperties() ) );
-
-        try
-        {
-            return interpolator.interpolate( value );
-        }
-        catch ( InterpolationException e )
-        {
-            // ignore interpolation issue
-            log.warn( "skip issue during interpolation " + e.getMessage() );
-            return value;
-        }
-    }
-
-    @PostConstruct
-    public void initialize()
-    {
-        String jdbcDriverName =
-            getConfigString( "jdbc.driver.name", super.getDriverName(), "org.apache.derby.jdbc.EmbeddedDriver" );
-        String jdbcUrl =
-            getConfigString( "jdbc.url", super.getUrl(), "jdbc:derby:${plexus.home}/database;create=true" );
-
-        String jdbcUsername = getConfigString( "jdbc.username", super.getUserName(), "sa" );
-        String jdbcPassword = getConfigString( "jdbc.password", super.getPassword(), "" );
-
-        super.setDriverName( jdbcDriverName );
-        super.setUrl( jdbcUrl );
-        super.setUserName( jdbcUsername );
-        super.setPassword( jdbcPassword );
-
-        if ( StringUtils.isEmpty( super.persistenceManagerFactoryClass ) )
-        {
-            super.setPersistenceManagerFactoryClass( "org.jpox.PersistenceManagerFactoryImpl" );
-        }
-
-        if ( ( super.otherProperties == null ) || super.otherProperties.isEmpty() )
-        {
-            super.setProperty( "org.jpox.autoCreateSchema", "true" );
-            super.setProperty( "org.jpox.validateSchema", "false" );
-            super.setProperty( "org.jpox.validateTables", "false" );
-            super.setProperty( "org.jpox.validateConstraints", "false" );
-            super.setProperty( "org.jpox.transactionIsolation", "READ_COMMITTED" );
-            super.setProperty( "org.jpox.rdbms.dateTimezone", "JDK_DEFAULT_TIMEZONE" );
-        }
-
-        super.initialize();
-    }
-
-    public UserConfiguration getConfig()
-    {
-        return config;
-    }
-
-    public void setConfig( UserConfiguration config )
-    {
-        this.config = config;
-    }
-}
diff --git a/redback-common/redback-common-jdo/src/main/java/org/codehaus/plexus/redback/common/jdo/test/StoreManagerDebug.java b/redback-common/redback-common-jdo/src/main/java/org/codehaus/plexus/redback/common/jdo/test/StoreManagerDebug.java
deleted file mode 100644 (file)
index e2f5665..0000000
+++ /dev/null
@@ -1,113 +0,0 @@
-package org.codehaus.plexus.redback.common.jdo.test;
-
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you 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.
- */
-
-import java.sql.PreparedStatement;
-import java.sql.ResultSet;
-import java.sql.SQLException;
-
-import javax.jdo.PersistenceManager;
-
-import org.jpox.AbstractPersistenceManagerFactory;
-import org.jpox.ClassLoaderResolver;
-import org.jpox.plugin.ConfigurationElement;
-import org.jpox.plugin.Extension;
-import org.jpox.store.rdbms.RDBMSManager;
-
-/**
- * A extension to JPOX store manager that allows counting the SQL queries
- * 
- * @author Carlos Sanchez <a href="mailto:carlos@apache.org">
- */
-public class StoreManagerDebug
-    extends RDBMSManager
-{
-    private static int counter;
-
-    public StoreManagerDebug( ClassLoaderResolver clr, AbstractPersistenceManagerFactory pmf, String userName,
-                              String password )
-    {
-        super( clr, pmf, userName, password );
-    }
-
-    /**
-     * This method will change JPOX store manager extension so it uses our class instead of whatever is configured in
-     * the plugin.xml
-     * 
-     * @param pmf
-     */
-    public static void setup( AbstractPersistenceManagerFactory pmf )
-    {
-        /* set our own Store Manager to allow counting SQL statements */
-        Extension[] extensions =
-            pmf.getPMFContext().getPluginManager().getExtensionPoint( "org.jpox.store_manager" ).getExtensions();
-        Extension e = extensions[0];
-        for ( ConfigurationElement element : e.getConfigurationElements() )
-        {
-            element.putAttribute( "class-name", StoreManagerDebug.class.getName() );
-        }
-    }
-
-    /**
-     * Get the currently configured store manager from JPOX. Will fail if
-     * {@link #setup(AbstractPersistenceManagerFactory)} is not called first.
-     * 
-     * @param persistenceManager
-     * @return
-     */
-    public static StoreManagerDebug getConfiguredStoreManager( PersistenceManager persistenceManager )
-    {
-        return (StoreManagerDebug) ( (org.jpox.PersistenceManager) persistenceManager ).getStoreManager();
-    }
-
-    @Override
-    public int[] executeStatementBatch( String stmt, PreparedStatement ps )
-        throws SQLException
-    {
-        counter++;
-        return super.executeStatementBatch( stmt, ps );
-    }
-
-    @Override
-    public ResultSet executeStatementQuery( String stmt, PreparedStatement ps )
-        throws SQLException
-    {
-        counter++;
-        return super.executeStatementQuery( stmt, ps );
-    }
-
-    @Override
-    public int executeStatementUpdate( String stmt, PreparedStatement ps )
-        throws SQLException
-    {
-        counter++;
-        return super.executeStatementUpdate( stmt, ps );
-    }
-
-    public void resetCounter()
-    {
-        counter = 0;
-    }
-
-    public int counter()
-    {
-        return counter;
-    }
-}
index 49255786ee5e6db1d4dbe8f38cf14289dedd4891..db81fdd73df9d78be84544d888c2d8b5c3e99fe5 100644 (file)
   -->
 <beans xmlns="http://www.springframework.org/schema/beans"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-       xmlns:context="http://www.springframework.org/schema/context"
        xsi:schemaLocation="http://www.springframework.org/schema/beans
-           http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
-           http://www.springframework.org/schema/context 
-           http://www.springframework.org/schema/context/spring-context-3.0.xsd"
+           http://www.springframework.org/schema/beans/spring-beans-3.0.xsd"
         default-lazy-init="true">
 
-  <bean name="jdoFactory#users" class="org.codehaus.plexus.redback.common.jdo.UserConfigurableJdoFactory">
+  <bean name="jdoFactory#users" class="org.apache.archiva.redback.common.jdo.UserConfigurableJdoFactory">
     <property name="config" ref="userConfiguration"/>
   </bean>
 </beans>
\ No newline at end of file
index 650618dea16599643d9e33b4f5b62c9904349ad8..e52aff9bc8ca7e5494b6df7d2a010f9756f6c427 100644 (file)
@@ -20,9 +20,9 @@ package org.codehaus.plexus.redback.management;
  */
 
 import junit.framework.TestCase;
+import org.apache.archiva.redback.common.jdo.UserConfigurableJdoFactory;
 import org.apache.archiva.redback.users.UserManager;
 import org.apache.commons.lang.SystemUtils;
-import org.codehaus.plexus.redback.common.jdo.UserConfigurableJdoFactory;
 import org.codehaus.plexus.redback.keys.AuthenticationKey;
 import org.codehaus.plexus.redback.keys.KeyManager;
 import org.codehaus.plexus.redback.keys.KeyManagerException;
index 2d93fc2b40c9242112f0bc7f184fae091d92fce7..5125b40caa942bc22c710de08dc1cfbf40b930c2 100644 (file)
@@ -28,7 +28,7 @@
 
   <context:property-placeholder system-properties-mode="OVERRIDE"/>
 
-  <bean name="jdoFactory#users" class="org.codehaus.plexus.redback.common.jdo.UserConfigurableJdoFactory">
+  <bean name="jdoFactory#users" class="org.apache.archiva.redback.common.jdo.UserConfigurableJdoFactory">
     <property name="config" ref="userConfiguration"/>
     <property name="driverName" value="org.apache.derby.jdbc.EmbeddedDriver"/>
     <property name="url" value="jdbc:derby:${basedir}/target" />
index ab958004c114c47f2e55c10292860a301c3c4e20..62e3d199bc89864ed86703409532da03712490e4 100755 (executable)
@@ -29,7 +29,7 @@
 
   <context:property-placeholder system-properties-mode="OVERRIDE"/>
 
-  <bean name="jdoFactory#users" class="org.codehaus.plexus.redback.common.jdo.UserConfigurableJdoFactory">
+  <bean name="jdoFactory#users" class="org.apache.archiva.redback.common.jdo.UserConfigurableJdoFactory">
     <property name="config" ref="userConfiguration"/>
     <property name="driverName" value="org.hsqldb.jdbcDriver"/>
     <property name="url" value="jdbc:hsqldb:mem:MailGeneratorTest" />
index b0780226a55ab98e87176fc315d36f1c24a5f756..853dff678a8e2db7ac892c6d29b7358ab4ed7a94 100644 (file)
@@ -21,7 +21,7 @@ package org.codehaus.plexus.redback.rbac.jdo;
 
 import net.sf.ehcache.CacheManager;
 import org.codehaus.plexus.jdo.DefaultConfigurableJdoFactory;
-import org.codehaus.plexus.redback.common.jdo.test.StoreManagerDebug;
+import org.apache.archiva.redback.common.jdo.test.StoreManagerDebug;
 import org.codehaus.plexus.redback.rbac.RBACManager;
 import org.codehaus.plexus.redback.rbac.RbacManagerException;
 import org.codehaus.plexus.redback.tests.AbstractRbacManagerTestCase;
index d0446bc7657178949bc2dc6e955a365f8a62557a..c57b82f792a665d6249b62d7ba133d2a295e4c4a 100644 (file)
@@ -20,7 +20,7 @@ package org.apache.archiva.redback.users.jdo;
  */
 
 import org.codehaus.plexus.jdo.DefaultConfigurableJdoFactory;
-import org.codehaus.plexus.redback.common.jdo.test.StoreManagerDebug;
+import org.apache.archiva.redback.common.jdo.test.StoreManagerDebug;
 import org.apache.archiva.redback.users.provider.test.AbstractUserManagerTestCase;
 import org.jpox.AbstractPersistenceManagerFactory;
 import org.jpox.SchemaTool;
index 8ee5839c8c1c386acd8965c1d2278e1a8d8d6203..8acaa1d54c02a9bfb75089d64f6ec76ae74e6558 100644 (file)
@@ -26,7 +26,7 @@
            http://www.springframework.org/schema/context 
            http://www.springframework.org/schema/context/spring-context-3.0.xsd">
 
-  <bean name="jdoFactory#users" class="org.codehaus.plexus.redback.common.jdo.UserConfigurableJdoFactory">
+  <bean name="jdoFactory#users" class="org.apache.archiva.redback.common.jdo.UserConfigurableJdoFactory">
     <property name="config" ref="userConfiguration"/>
     <property name="driverName" value="org.hsqldb.jdbcDriver"/>
     <property name="url" value="jdbc:hsqldb:mem:redback-users-tests" />