public class SpringDaoMetaAnnotationAspect extends Object implements org.springframework.core.Ordered
This aspect will handle the following meta annotations :
See below for details.
Iterable, if that method has the annotation EmptyCollectionGuard.
When this aspect is triggered, any argument of type/subtype of Iterable will be checked against emptyness.
If the test passes the call will be forwared to the target method. Otherwise it will be aborted and a value semantically meaning "no results" will be returned. The actual result depend on the expected returned type :
SpringDaoMetaAnnotationAspect.UnsupportedReturnTypeException for other subtypes of CollectionHistory note : part of the code is scrapped from @link ArbitraryQueryHandler (core.dynamicmanagers)
| Modifier and Type | Class and Description |
|---|---|
static class |
SpringDaoMetaAnnotationAspect.UnsupportedReturnTypeException |
| Constructor and Description |
|---|
SpringDaoMetaAnnotationAspect() |
| Modifier and Type | Method and Description |
|---|---|
void |
callEmptyCollectionGuard() |
int |
getOrder() |
Object |
guardAgainstEmptyness(org.aspectj.lang.ProceedingJoinPoint pjp) |
Copyright © 2010–2017 Henix, henix.fr. All rights reserved.