DATAGRAPH-229 - Upgraded to Spring Data Commons 1.3.0.BUILD-SNAPSHOT.

Added removed deprecated types from Spring Data Commons that are necessary until the dependency to these types are removed from the Spring Data Neo4J codebase.
This commit is contained in:
Oliver Gierke
2012-04-29 13:12:32 +02:00
parent 7200a208fb
commit b2267419cd
4 changed files with 97 additions and 1 deletions

View File

@@ -126,7 +126,7 @@
<org.springframework.version.30>3.0.7.RELEASE</org.springframework.version.30>
<org.springframework.version.40>4.0.0.RELEASE</org.springframework.version.40>
<org.springframework.version>[${org.springframework.version.30}, ${org.springframework.version.40})</org.springframework.version>
<data.commons.version>1.3.0.RC1</data.commons.version>
<data.commons.version>1.3.0.BUILD-SNAPSHOT</data.commons.version>
<neo4j.version>1.7</neo4j.version>
<neo4j.spatial.version>0.8-SNAPSHOT</neo4j.spatial.version>
<aspectj.version>1.6.12</aspectj.version>

View File

@@ -0,0 +1,31 @@
/**
* Copyright 2011 the original author or authors.
*
* Licensed 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.
*/
package org.springframework.data.persistence;
import org.springframework.data.convert.EntityInstantiator;
/**
* encapsulates the instantiator of state-backed classes and populating them with the provided state.
* <p/>
* Can be implemented and registered with the concrete AbstractConstructorEntityInstantiator to provide non reflection
* bases instantiaton for domain classes
*
* @deprecated use {@link EntityInstantiator} abstraction instead.
*/
@Deprecated
public interface StateBackedCreator<T, STATE> {
T create(STATE n, Class<T> c) throws Exception;
}

View File

@@ -0,0 +1,44 @@
/**
* Copyright 2011 the original author or authors.
*
* Licensed 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.
*/
package org.springframework.data.persistence;
import org.springframework.data.convert.EntityInstantiator;
/**
* @author Michael Hunger
* @since 24.09.2010
* @deprecated use {@link EntityInstantiator} abstraction instead
*/
@Deprecated
public abstract class StateProvider {
private final static ThreadLocal stateHolder = new ThreadLocal();
private StateProvider() {
}
public static <STATE> void setUnderlyingState(STATE state) {
if (stateHolder.get() != null)
throw new IllegalStateException("StateHolder already contains state " + stateHolder.get() + " in thread "
+ Thread.currentThread());
stateHolder.set(state);
}
public static <STATE> STATE retrieveState() {
STATE result = (STATE) stateHolder.get();
stateHolder.remove();
return result;
}
}

View File

@@ -0,0 +1,21 @@
/**
* Copyright 2011 the original author or authors.
*
* Licensed 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.
*/
/**
* Deprecated entity instantiation API.
*
* @deprecated Use entity instantation API around {@link org.springframework.data.convert.EntityInstantiator} instead.
*/
package org.springframework.data.persistence;