Class ItemsAspect
java.lang.Object
info.ejava.examples.svc.aop.items.aspects.ItemsAspect
@Component
@ConditionalOnProperty(name="enable.example.aspects",
havingValue="true",
matchIfMissing=true)
public class ItemsAspect
extends Object
This is a demonstration Aspect, with a variety of pointcuts and advice
to be used during the lecture.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterMowerUpdate(org.aspectj.lang.JoinPoint jp, int id, MowerDTO mowerUpdate) voidafterReturningMowerUpdate(org.aspectj.lang.JoinPoint jp, int id, MowerDTO mowerUpdate, MowerDTO result) voidafterThrowingMowerUpdate(org.aspectj.lang.JoinPoint jp, int id, MowerDTO mowerUpdate, ClientErrorException.NotFoundException ex) voidvoidvoidvoidvoidaroundMowerUpdate(org.aspectj.lang.ProceedingJoinPoint pjp, int id, MowerDTO mowerUpdate) voidbeforeAtTarget(org.aspectj.lang.JoinPoint jp, org.springframework.core.annotation.Order order) voidbeforeBeds(org.aspectj.lang.JoinPoint jp) voidbeforeCreateGrillAdvice(GrillDTO grill) voidvoidbeforeGrillServiceMethod(org.aspectj.lang.JoinPoint jp) voidbeforeGrillsMethodsUnknown(org.aspectj.lang.JoinPoint jp) voidbeforeMowerUpdate(org.aspectj.lang.JoinPoint jp, int id, MowerDTO mowerUpdate) voidbeforeOrderAnnotation(org.springframework.core.annotation.Order order) voidbeforeServiceMethod(org.aspectj.lang.JoinPoint jp) voidbeforeTarget(ItemsService<BedDTO> target, Object proxy) voidbeforeUpdateGrillAdvice(int id, GrillDTO grill) voidvoidbelowPackage(org.aspectj.lang.JoinPoint jp) voidcreateGrill(GrillDTO grillDTO) voidcreateItemMethod(org.aspectj.lang.JoinPoint jp) voidvoidvoidvoidvoidgrillDeleteAll(org.aspectj.lang.JoinPoint jp) voidvoidvoidgrillServiceMethod(org.aspectj.lang.JoinPoint jp) voidvoidmowerUpdate(int id, MowerDTO mowerUpdate) voidvoidoneArgGrill(org.aspectj.lang.JoinPoint jp) voidvoidorderAnnotationValue(org.springframework.core.annotation.Order order) voidvoidreturnsGrill(org.aspectj.lang.JoinPoint jp) voidvoidvoidvoidvoidvoidvoidupdateGrill(int grillId, GrillDTO updatedGrill) voidupdateItem(org.aspectj.lang.JoinPoint jp) voidvoidvoidvoidvoidvoid
-
Constructor Details
-
ItemsAspect
public ItemsAspect()
-
-
Method Details
-
serviceMethod
public void serviceMethod() -
beforeServiceMethod
public void beforeServiceMethod(org.aspectj.lang.JoinPoint jp) -
grillArgs
public void grillArgs() -
serviceMethodWithGrillArgs
public void serviceMethodWithGrillArgs() -
beforeGrillServiceMethod
public void beforeGrillServiceMethod(org.aspectj.lang.JoinPoint jp) -
beforeGrillServiceMethod
public void beforeGrillServiceMethod() -
belowPackage
public void belowPackage() -
belowPackage
public void belowPackage(org.aspectj.lang.JoinPoint jp) -
returnsGrillPattern
public void returnsGrillPattern() -
returnsFullyQualifiedGrill
public void returnsFullyQualifiedGrill() -
returnsGrill
public void returnsGrill(org.aspectj.lang.JoinPoint jp) -
anyFullyQualifiedGrillServiceMethod
public void anyFullyQualifiedGrillServiceMethod() -
anyPatternGrillServiceMethod
public void anyPatternGrillServiceMethod() -
grillServicePatternAnyMethod
public void grillServicePatternAnyMethod() -
grillServiceMethod
public void grillServiceMethod(org.aspectj.lang.JoinPoint jp) -
anyCreateItem
public void anyCreateItem() -
grillServiceCreateItem
public void grillServiceCreateItem() -
anyCreate
public void anyCreate() -
createItemMethod
public void createItemMethod(org.aspectj.lang.JoinPoint jp) -
explicitDeleteAllGrills
public void explicitDeleteAllGrills() -
noargsGrillMethod
public void noargsGrillMethod() -
grillNoargsDeleteMethod
public void grillNoargsDeleteMethod() -
grillDeleteAll
public void grillDeleteAll(org.aspectj.lang.JoinPoint jp) -
explicitCreateGrillOneParam
public void explicitCreateGrillOneParam() -
createItemTakingExplicitGrillParam
public void createItemTakingExplicitGrillParam() -
anyMethodTakingGrillParam
public void anyMethodTakingGrillParam() -
oneArgGrill
public void oneArgGrill(org.aspectj.lang.JoinPoint jp) -
updateItemTwoParams
public void updateItemTwoParams() -
updateItemIntWildcard
public void updateItemIntWildcard() -
updateItemIntGrillDTO
public void updateItemIntGrillDTO() -
updateItem
public void updateItem(org.aspectj.lang.JoinPoint jp) -
withinItemsSubpackage
public void withinItemsSubpackage() -
withinImplementsItemsService
public void withinImplementsItemsService() -
withinBedsService
public void withinBedsService() -
targetBedsServiceImpl
public void targetBedsServiceImpl() -
thisBedsServiceImpl
public void thisBedsServiceImpl() -
beforeBeds
public void beforeBeds(org.aspectj.lang.JoinPoint jp) -
targetServices
public void targetServices() -
orderAnnotationValue
public void orderAnnotationValue(org.springframework.core.annotation.Order order) -
orderAnnotation
public void orderAnnotation() -
beforeAtTarget
public void beforeAtTarget(org.aspectj.lang.JoinPoint jp, org.springframework.core.annotation.Order order) -
beforeOrderAnnotation
public void beforeOrderAnnotation(org.springframework.core.annotation.Order order) -
beforeTarget
-
createGrill
-
beforeCreateGrillAdvice
-
updateGrill
-
beforeUpdateGrillAdvice
-
beforeGrillsMethodsUnknown
public void beforeGrillsMethodsUnknown(org.aspectj.lang.JoinPoint jp) -
mowerUpdate
-
beforeMowerUpdate
-
afterReturningMowerUpdate
-
afterThrowingMowerUpdate
public void afterThrowingMowerUpdate(org.aspectj.lang.JoinPoint jp, int id, MowerDTO mowerUpdate, ClientErrorException.NotFoundException ex) -
afterMowerUpdate
-
aroundMowerUpdate
public Object aroundMowerUpdate(org.aspectj.lang.ProceedingJoinPoint pjp, int id, MowerDTO mowerUpdate) throws Throwable - Throws:
Throwable
-