DATACMNS-710 - Polishing.

Some additional JavaDoc, deprecations, copyright headers.

Original pull request: #128.
This commit is contained in:
Oliver Gierke
2015-06-15 22:16:10 +02:00
parent 8156c2a151
commit a8b64c3828
5 changed files with 15 additions and 9 deletions

View File

@@ -29,16 +29,17 @@ import org.springframework.data.mapping.model.ParameterValueProvider;
* @author Thomas Darimont
* @author Oliver Gierke
* @since 1.10
* @deprecated since 1.11 in favor of {@link ClassGeneratingEntityInstantiator}
* @deprecated since 1.11 in favor of {@link ClassGeneratingEntityInstantiator}.
*/
@Deprecated
public enum BytecodeGeneratingEntityInstantiator implements EntityInstantiator {
INSTANCE;
private final ClassGeneratingEntityInstantiator delegate = new ClassGeneratingEntityInstantiator();
/* (non-Javadoc)
/*
* (non-Javadoc)
* @see org.springframework.data.convert.EntityInstantiator#createInstance(org.springframework.data.mapping.PersistentEntity, org.springframework.data.mapping.model.ParameterValueProvider)
*/
@Override

View File

@@ -1,4 +1,3 @@
package org.springframework.data.convert;
/*
* Copyright 2015 the original author or authors.
*
@@ -14,6 +13,7 @@ package org.springframework.data.convert;
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.data.convert;
import static org.springframework.asm.Opcodes.*;
@@ -49,7 +49,8 @@ import org.springframework.util.ClassUtils;
*
* @author Thomas Darimont
* @author Oliver Gierke
* @since 1.10
* @author Phillip Webb
* @since 1.11
*/
public class ClassGeneratingEntityInstantiator implements EntityInstantiator {
@@ -58,11 +59,15 @@ public class ClassGeneratingEntityInstantiator implements EntityInstantiator {
private volatile Map<TypeInformation<?>, EntityInstantiator> entityInstantiators = new HashMap<TypeInformation<?>, EntityInstantiator>(
32);
/**
* Creates a new {@link ClassGeneratingEntityInstantiator}.
*/
public ClassGeneratingEntityInstantiator() {
this.generator = new ObjectInstantiatorClassGenerator();
}
/* (non-Javadoc)
/*
* (non-Javadoc)
* @see org.springframework.data.convert.EntityInstantiator#createInstance(org.springframework.data.mapping.PersistentEntity, org.springframework.data.mapping.model.ParameterValueProvider)
*/
@Override

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2014 the original author or authors.
* Copyright 2012-2015 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.