提交 d9df50c6 编写于 作者: S Stephane Nicoll

@Entity no longer required with spring-aspect

This commits complements 222d2b16 for another required dependency.

javax.persistence.Entity was previously required, regardless of which
aspects were actually used by the project. It is now optional and will
not break the build if it is not present. Note that the side effect is that
AnnotationDrivenStaticEntityMockingControl is disabled as well if the
JPA API is not available.

Issue: SPR-6819
上级 222d2b16
...@@ -16,6 +16,8 @@ ...@@ -16,6 +16,8 @@
package org.springframework.mock.staticmock; package org.springframework.mock.staticmock;
import org.aspectj.lang.annotation.RequiredTypes;
/** /**
* Annotation-based aspect to use in test builds to enable mocking of static methods * Annotation-based aspect to use in test builds to enable mocking of static methods
* on JPA-annotated {@code @Entity} classes, as used by Spring Roo for so-called * on JPA-annotated {@code @Entity} classes, as used by Spring Roo for so-called
...@@ -57,6 +59,7 @@ package org.springframework.mock.staticmock; ...@@ -57,6 +59,7 @@ package org.springframework.mock.staticmock;
* @author Sam Brannen * @author Sam Brannen
* @see MockStaticEntityMethods * @see MockStaticEntityMethods
*/ */
@RequiredTypes("javax.persistence.Entity")
public aspect AnnotationDrivenStaticEntityMockingControl extends AbstractMethodMockingControl { public aspect AnnotationDrivenStaticEntityMockingControl extends AbstractMethodMockingControl {
/** /**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册