DATACMNS-578 - Speed up instance creation by generating factory classes with ASM.

Introduced BytecodeGeneratingEntityInstantiator which dynamically generates classes to speed up the dynamic instantiation of objects. Since we cannot support every use case with byte code generation we gracefully fallback to the ReflectiveEntityInstantiator.

BytecodeGeneratingEntityInstantiator has support for unboxing of constructor parameters and more robust handling for cases where we cannot generate a custom ObjectInstantiator.

Original pull request: #98.
This commit is contained in:
Thomas Darimont
2014-10-14 10:22:04 +02:00
committed by Oliver Gierke
parent 48966b50d6
commit 1b9cdc941f
6 changed files with 914 additions and 11 deletions

View File

@@ -15,6 +15,7 @@ Import-Template:
javax.xml.bind.*;version="0";resolution:=optional,
javax.xml.transform.*;version="0";resolution:=optional,
org.springframework.aop.*;version="${spring:[=.=.=,+1.1.0)}";resolution:=optional,
org.springframework.asm.*;version="${spring:[=.=.=,+1.1.0)}",
org.springframework.beans.*;version="${spring:[=.=.=,+1.1.0)}",
org.springframework.core.*;version="${spring:[=.=.=,+1.1.0)}",
org.springframework.context.*;version="${spring:[=.=.=,+1.1.0)}";resolution:=optional,