DATAJPA-19 - Moved extension classes into Spring Data Commons Core.

This commit is contained in:
Oliver Gierke
2011-03-23 10:01:45 +01:00
parent a2dc608ab4
commit 6672a206c7
16 changed files with 43 additions and 136 deletions

View File

@@ -12,7 +12,6 @@
<module>spring-data-commons-parent</module>
<module>spring-data-commons-core</module>
<module>spring-data-commons-aspects</module>
<module>spring-data-commons-extensions</module>
</modules>
<developers>

View File

@@ -21,6 +21,18 @@
<groupId>org.springframework</groupId>
<artifactId>spring-tx</artifactId>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.5</version>
<scope>provided</scope>
</dependency>
<!-- Logging -->
<dependency>

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.data.extensions.converter;
package org.springframework.data.repository.support;
import java.io.Serializable;
import java.util.Collection;

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.data.extensions.beans;
package org.springframework.data.repository.support;
import java.beans.PropertyEditor;
import java.beans.PropertyEditorSupport;

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.data.extensions.beans;
package org.springframework.data.repository.support;
import java.io.Serializable;
import java.util.Collection;

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.data.extensions.web;
package org.springframework.data.web;
import java.beans.PropertyEditorSupport;
import java.lang.annotation.Annotation;

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.data.extensions.web;
package org.springframework.data.web;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.data.extensions.conversion;
package org.springframework.data.repository.support;
import static org.hamcrest.Matchers.*;
import static org.junit.Assert.*;
@@ -33,7 +33,7 @@ import org.mockito.runners.MockitoJUnitRunner;
import org.springframework.context.ApplicationContext;
import org.springframework.core.convert.ConversionService;
import org.springframework.core.convert.TypeDescriptor;
import org.springframework.data.extensions.converter.DomainClassConverter;
import org.springframework.data.repository.support.DomainClassConverter;
import org.springframework.data.repository.Repository;
import org.springframework.data.repository.support.EntityInformation;
import org.springframework.data.repository.support.RepositoryFactoryInformation;
@@ -54,6 +54,7 @@ public class DomainClassConverterUnitTests {
TypeDescriptor sourceDescriptor;
TypeDescriptor targetDescriptor;
@SuppressWarnings("rawtypes")
Map<String, RepositoryFactoryInformation> providers;
@Mock

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.data.extensions.beans;
package org.springframework.data.repository.support;
import static org.hamcrest.Matchers.*;
import static org.mockito.Matchers.*;

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.data.extensions.beans;
package org.springframework.data.repository.support;
import static org.hamcrest.CoreMatchers.*;
import static org.junit.Assert.*;

View File

@@ -67,6 +67,7 @@ public class RepositoryFactorySupportUnitTests {
* @see org.springframework.data.repository.support.RepositoryFactorySupport#getEntityInformation(java.lang.Class)
*/
@Override
@SuppressWarnings("unchecked")
public <T, ID extends Serializable> EntityInformation<T, ID> getEntityInformation(
Class<T> domainClass) {

View File

@@ -112,6 +112,7 @@ public class ClassTypeInformationUnitTests {
}
@SuppressWarnings("unused")
private class MapContainer<T> {
Map<String, T> genericMap;
Map<String, Calendar> map;
@@ -121,6 +122,7 @@ public class ClassTypeInformationUnitTests {
}
@SuppressWarnings({"unused", "rawtypes"})
private class CollectionContainer<T> {
T[] array;
@@ -129,11 +131,13 @@ public class ClassTypeInformationUnitTests {
Set rawSet;
}
@SuppressWarnings("unused")
private class GenericTypeWithBound<T extends Person> {
T person;
}
@SuppressWarnings("unused")
private class AnotherGenericType<T extends Person, S extends GenericTypeWithBound<T>> {
S nested;
@@ -151,6 +155,7 @@ public class ClassTypeInformationUnitTests {
}
}
@SuppressWarnings("unused")
private class GenericType<T, S> {
Long index;
@@ -161,6 +166,7 @@ public class ClassTypeInformationUnitTests {
}
@SuppressWarnings("unused")
private class GenericWrapper<S> {
GenericType<S, Object> wrapped;

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.data.extensions.web;
package org.springframework.data.web;
import static org.junit.Assert.*;

View File

@@ -5,23 +5,25 @@ Bundle-ManifestVersion: 2
Import-Package:
sun.reflect;version="0";resolution:=optional
Import-Template:
org.springframework.aop.*;version="[3.0.0, 4.0.0)",
org.springframework.beans.*;version="[3.0.0, 4.0.0)",
org.springframework.core.*;version="[3.0.0, 4.0.0)",
org.springframework.context.*;version="[3.0.0, 4.0.0)",
org.springframework.dao.*;version="[3.0.0, 4.0.0)",
org.springframework.util.*;version="[3.0.0, 4.0.0)",
org.springframework.expression.*;version="[3.0.0, 4.0.0)",
org.springframework.expression.spel.standard.*;version="[3.0.0, 4.0.0)",
org.springframework.expression.spel.support.*;version="[3.0.0, 4.0.0)",
org.springframework.transaction.*;version="[3.0.0, 4.0.0)",
org.springframework.validation.*;version="[3.0.0, 4.0.0)",
org.springframework.aop.*;version="${org.springframework.version:[=.=.=,+1.0.0)}",
org.springframework.beans.*;version="${org.springframework.version:[=.=.=,+1.0.0)}",
org.springframework.core.*;version="${org.springframework.version:[=.=.=,+1.0.0)}",
org.springframework.context.*;version="${org.springframework.version:[=.=.=,+1.0.0)}",
org.springframework.dao.*;version="${org.springframework.version:[=.=.=,+1.0.0)}",
org.springframework.util.*;version="${org.springframework.version:[=.=.=,+1.0.0)}",
org.springframework.expression.*;version="${org.springframework.version:[=.=.=,+1.0.0)}",
org.springframework.expression.spel.standard.*;version="${org.springframework.version:[=.=.=,+1.0.0)}",
org.springframework.expression.spel.support.*;version="${org.springframework.version:[=.=.=,+1.0.0)}",
org.springframework.transaction.*;version="${org.springframework.version:[=.=.=,+1.0.0)}",
org.springframework.validation.*;version="${org.springframework.version:[=.=.=,+1.0.0)}",
org.springframework.data.core.*;version="[1.0.0, 2.0.0)",
org.springframework.data.persistence.*;version="[1.0.0, 2.0.0)",
org.springframework.web.*;version="${org.springframework.version:[=.=.=,+1.0.0)}";resolution:=optional,
org.aopalliance.*;version="[1.0.0, 2.0.0)";resolution:=optional,
org.apache.commons.logging.*;version="[1.1.1, 2.0.0)",
org.joda.time.*;version="[1.6.0,2.0.0)",
org.slf4j.*;version="[1.5.0,1.6.0)",
javax.servlet.*;version="[2.5.0, 3.0.0)";resolution:=optional,
org.w3c.dom.*;version="0"

View File

@@ -1,98 +0,0 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-commons-parent</artifactId>
<version>1.0.0.BUILD-SNAPSHOT</version>
<relativePath>../spring-data-commons-parent/pom.xml</relativePath>
</parent>
<artifactId>spring-data-commons-extensions</artifactId>
<packaging>jar</packaging>
<name>Spring Data Commons Extensions</name>
<dependencies>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>spring-data-commons-core</artifactId>
<version>${project.version}</version>
</dependency>
<!-- Spring -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.5</version>
<scope>provided</scope>
</dependency>
<!-- Logging -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>javax.annotation</groupId>
<artifactId>jsr250-api</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-all</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
</dependency>
<dependency>
<groupId>joda-time</groupId>
<artifactId>joda-time</artifactId>
<version>1.6</version>
<optional>true</optional>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>com.springsource.bundlor</groupId>
<artifactId>com.springsource.bundlor.maven</artifactId>
</plugin>
</plugins>
</build>
</project>

View File

@@ -1,16 +0,0 @@
Bundle-SymbolicName: org.springframework.data.extensions
Bundle-Name: Spring Data Commons Extensions
Bundle-Vendor: SpringSource
Bundle-ManifestVersion: 2
Export-Template:
org.springframework.data.extensions.*;version="${project.version:[=.=.=,+1.0.0)}"
Import-Template:
org.springframework.data.*;version="${project.version:[=.=.=,+1.0.0)}",
org.springframework.core.*;version="${org.springframework.version:[=.=.=,+1.0.0)}",
org.springframework.beans.*;version="${org.springframework.version:[=.=.=,+1.0.0)}",
org.springframework.context.*;version="${org.springframework.version:[=.=.=,+1.0.0)}",
org.springframework.util.*;version="${org.springframework.version:[=.=.=,+1.0.0)}",
org.springframework.validation.*;version="${org.springframework.version:[=.=.=,+1.0.0)}",
org.springframework.web.*;version="${org.springframework.version:[=.=.=,+1.0.0)}",
javax.servlet.*;version="[2.5.0, 3.0.0)"