<classpathentry kind="src" path="support/general/src/test/java"/>
<classpathentry excluding="**" kind="src" output="support/general/src/main/resources" path="support/general/src/main/resources"/>
<classpathentry excluding="**" kind="src" output="support/general/src/test/resources" path="support/general/src/test/resources"/>
- <classpathentry kind="src" path="support/src/main/java"/>
- <classpathentry kind="src" path="support/src/test/java"/>
- <classpathentry excluding="**" kind="src" output="support/src/main/resources" path="support/src/main/resources"/>
- <classpathentry excluding="**" kind="src" output="support/src/test/resources" path="support/src/test/resources"/>
+ <classpathentry kind="src" path="support/spring/src/main/java"/>
+ <classpathentry kind="src" path="support/spring/src/test/java"/>
<classpathentry kind="src" path="system/general/src/main/java"/>
<classpathentry kind="src" path="system/general/src/test/java"/>
<classpathentry kind="src" path="system/spring/src/main/java"/>
<dependency>
<groupId>org.wamblee</groupId>
<artifactId>wamblee-crawler-basic</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.wamblee</groupId>
+ <artifactId>wamblee-support-spring</artifactId>
+ <version>0.2-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>commons-email</groupId>
package org.wamblee.crawler.kiss.main;
-import org.wamblee.general.SpringBeanFactory;
+import org.wamblee.general.spring.SpringBeanFactory;
/**
* Bean factory used for the standalone crawler application.
* limitations under the License.
*/
package org.wamblee.crawler.kiss.spring;
-import org.wamblee.general.SpringBeanFactory;
+import org.wamblee.general.spring.SpringBeanFactory;
/**
<groupId>org.wamblee</groupId>
<artifactId>wamblee-support-general</artifactId>
<version>0.2-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.wamblee</groupId>
+ <artifactId>wamblee-support-spring</artifactId>
+ <version>0.2-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
* limitations under the License.
*/
package org.wamblee.mythtv;
-import org.wamblee.general.SpringBeanFactory;
+import org.wamblee.general.spring.SpringBeanFactory;
/**
<type>test-jar</type>
<version>0.2-SNAPSHOT</version>
</dependency>
+ <dependency>
+ <groupId>org.wamblee</groupId>
+ <artifactId>wamblee-support-spring</artifactId>
+ <version>0.2-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.wamblee</groupId>
+ <artifactId>wamblee-support-spring</artifactId>
+ <type>test-jar</type>
+ <version>0.2-SNAPSHOT</version>
+ </dependency>
+
<dependency>
<groupId>org.wamblee</groupId>
<artifactId>wamblee-hibernate-jpa</artifactId>
import static org.wamblee.security.authorization.AuthorizationResult.GRANTED;
import org.wamblee.persistence.hibernate.HibernateMappingFiles;
-import org.wamblee.test.SpringConfigFiles;
-import org.wamblee.test.SpringTestCase;
+import org.wamblee.test.spring.SpringTestCase;
+import org.wamblee.test.spring.SpringConfigFiles;
import org.wamblee.usermgt.UserAccessor;
/**
import java.util.Set;
import org.wamblee.persistence.hibernate.HibernateMappingFiles;
-import org.wamblee.test.SpringConfigFiles;
-import org.wamblee.test.SpringTestCase;
+import org.wamblee.test.spring.SpringTestCase;
+import org.wamblee.test.spring.SpringConfigFiles;
/**
* Tests the inmemory group set. Intended to be subclassed for other
import org.wamblee.persistence.hibernate.HibernateMappingFiles;
import org.wamblee.security.encryption.Md5HexMessageDigester;
-import org.wamblee.test.SpringConfigFiles;
-import org.wamblee.test.SpringTestCase;
+import org.wamblee.test.spring.SpringTestCase;
+import org.wamblee.test.spring.SpringConfigFiles;
import org.wamblee.usermgt.UserMgtException.Reason;
/**
import org.apache.log4j.Logger;
import org.wamblee.persistence.hibernate.HibernateMappingFiles;
import org.wamblee.security.encryption.Md5HexMessageDigester;
-import org.wamblee.test.SpringConfigFiles;
-import org.wamblee.test.SpringTestCase;
+import org.wamblee.test.spring.SpringConfigFiles;
+import org.wamblee.test.spring.SpringTestCase;
import org.wamblee.usermgt.UserMgtException.Reason;
/**
import java.util.Collections;
-import org.wamblee.test.SpringConfigFiles;
+import org.wamblee.test.spring.SpringConfigFiles;
/**
* Spring config files for user management.
import java.util.Map;
import org.wamblee.general.BeanKernel;
-import org.wamblee.test.TestTransactionCallback;
+import org.wamblee.test.spring.TestTransactionCallback;
import org.wamblee.usermgt.GroupSet;
import org.wamblee.usermgt.InMemoryGroupSetTest;
import org.wamblee.usermgt.UsermgtHibernateMappingFiles;
import org.apache.commons.logging.LogFactory;
import org.wamblee.cache.Cache;
import org.wamblee.general.BeanKernel;
-import org.wamblee.test.TestTransactionCallbackWithoutResult;
+import org.wamblee.test.spring.TestTransactionCallbackWithoutResult;
import org.wamblee.usermgt.UserAdministration;
import org.wamblee.usermgt.UserAdministrationImplTest;
import org.wamblee.usermgt.UsermgtHibernateMappingFiles;
<bean id="usermanagement-lock" class="org.wamblee.concurrency.JvmLock"/>
- <bean id="usermanagement-lock-advice" class="org.wamblee.concurrency.LockAdvice">
+ <bean id="usermanagement-lock-advice" class="org.wamblee.concurrency.spring.LockAdvice">
<constructor-arg><ref bean="usermanagement-lock"/></constructor-arg>
</bean>
import junit.framework.TestCase;
-import org.springframework.core.io.ClassPathResource;
+
+import org.wamblee.io.ClassPathResource;
import org.wamblee.io.FileSystemUtils;
/**
* limitations under the License.
*/
-package org.wamblee.concurrency;
+package org.wamblee.concurrency.spring;
import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;
+import org.wamblee.concurrency.Lock;
/**
* Locking advice. This automatically synchronized an object using a given lock.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.wamblee.general;
+package org.wamblee.general.spring;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.access.BeanFactoryLocator;
import org.springframework.beans.factory.access.BeanFactoryReference;
import org.springframework.context.access.ContextSingletonBeanFactoryLocator;
+import org.wamblee.general.BeanFactory;
+import org.wamblee.general.BeanFactoryException;
+import org.wamblee.general.BeanKernel;
/**
* Bean factory which uses Spring. This bean factory cannot be configured
* limitations under the License.
*/
-package org.wamblee.concurrency;
+package org.wamblee.concurrency.spring;
import org.springframework.aop.framework.ProxyFactoryBean;
+import org.wamblee.concurrency.AbstractLockTestCase;
+import org.wamblee.concurrency.JvmLock;
+import org.wamblee.concurrency.spring.LockAdvice;
import org.wamblee.test.TimingUtils;
/**
* limitations under the License.
*/
-package org.wamblee.general;
+package org.wamblee.general.spring;
+
+import org.wamblee.general.BeanFactoryException;
import junit.framework.TestCase;
* limitations under the License.
*/
-package org.wamblee.general;
+package org.wamblee.general.spring;
/**
* Test bean factory.
* limitations under the License.
*/
-package org.wamblee.test;
+package org.wamblee.test.spring;
import java.io.File;
import java.io.IOException;
* limitations under the License.
*/
-package org.wamblee.test;
+package org.wamblee.test.spring;
import java.io.File;
import java.io.IOException;
* limitations under the License.
*/
-package org.wamblee.test;
+package org.wamblee.test.spring;
import java.io.File;
import java.io.FileFilter;
* limitations under the License.
*/
-package org.wamblee.test;
+package org.wamblee.test.spring;
import java.util.ArrayList;
import java.util.Arrays;
* limitations under the License.
*/
-package org.wamblee.test;
+package org.wamblee.test.spring;
import java.sql.Connection;
import java.sql.PreparedStatement;
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.wamblee.test;
+package org.wamblee.test.spring;
import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
-package org.wamblee.test;
+package org.wamblee.test.spring;
import java.util.Map;
-package org.wamblee.test;
+package org.wamblee.test.spring;
/**
* Transaction callback for testing. The test will fail if any type of exception