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 TypeMethodDescriptionvoid
afterMowerUpdate
(org.aspectj.lang.JoinPoint jp, int id, MowerDTO mowerUpdate) void
afterReturningMowerUpdate
(org.aspectj.lang.JoinPoint jp, int id, MowerDTO mowerUpdate, MowerDTO result) void
afterThrowingMowerUpdate
(org.aspectj.lang.JoinPoint jp, int id, MowerDTO mowerUpdate, ClientErrorException.NotFoundException ex) void
void
void
void
void
aroundMowerUpdate
(org.aspectj.lang.ProceedingJoinPoint pjp, int id, MowerDTO mowerUpdate) void
beforeAtTarget
(org.aspectj.lang.JoinPoint jp, org.springframework.core.annotation.Order order) void
beforeBeds
(org.aspectj.lang.JoinPoint jp) void
beforeCreateGrillAdvice
(GrillDTO grill) void
void
beforeGrillServiceMethod
(org.aspectj.lang.JoinPoint jp) void
beforeGrillsMethodsUnknown
(org.aspectj.lang.JoinPoint jp) void
beforeMowerUpdate
(org.aspectj.lang.JoinPoint jp, int id, MowerDTO mowerUpdate) void
beforeOrderAnnotation
(org.springframework.core.annotation.Order order) void
beforeServiceMethod
(org.aspectj.lang.JoinPoint jp) void
beforeTarget
(ItemsService<BedDTO> target, Object proxy) void
beforeUpdateGrillAdvice
(int id, GrillDTO grill) void
void
belowPackage
(org.aspectj.lang.JoinPoint jp) void
createGrill
(GrillDTO grillDTO) void
createItemMethod
(org.aspectj.lang.JoinPoint jp) void
void
void
void
void
grillDeleteAll
(org.aspectj.lang.JoinPoint jp) void
void
void
grillServiceMethod
(org.aspectj.lang.JoinPoint jp) void
void
mowerUpdate
(int id, MowerDTO mowerUpdate) void
void
oneArgGrill
(org.aspectj.lang.JoinPoint jp) void
void
orderAnnotationValue
(org.springframework.core.annotation.Order order) void
void
returnsGrill
(org.aspectj.lang.JoinPoint jp) void
void
void
void
void
void
void
updateGrill
(int grillId, GrillDTO updatedGrill) void
updateItem
(org.aspectj.lang.JoinPoint jp) void
void
void
void
void
void
-
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
-