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 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

      public void beforeTarget(ItemsService<BedDTO> target, Object proxy)
    • createGrill

      public void createGrill(GrillDTO grillDTO)
    • beforeCreateGrillAdvice

      public void beforeCreateGrillAdvice(GrillDTO grill)
    • updateGrill

      public void updateGrill(int grillId, GrillDTO updatedGrill)
    • beforeUpdateGrillAdvice

      public void beforeUpdateGrillAdvice(int id, GrillDTO grill)
    • beforeGrillsMethodsUnknown

      public void beforeGrillsMethodsUnknown(org.aspectj.lang.JoinPoint jp)
    • mowerUpdate

      public void mowerUpdate(int id, MowerDTO mowerUpdate)
    • beforeMowerUpdate

      public void beforeMowerUpdate(org.aspectj.lang.JoinPoint jp, int id, MowerDTO mowerUpdate)
    • afterReturningMowerUpdate

      public void afterReturningMowerUpdate(org.aspectj.lang.JoinPoint jp, int id, MowerDTO mowerUpdate, MowerDTO result)
    • afterThrowingMowerUpdate

      public void afterThrowingMowerUpdate(org.aspectj.lang.JoinPoint jp, int id, MowerDTO mowerUpdate, ClientErrorException.NotFoundException ex)
    • afterMowerUpdate

      public void afterMowerUpdate(org.aspectj.lang.JoinPoint jp, int id, MowerDTO mowerUpdate)
    • aroundMowerUpdate

      public Object aroundMowerUpdate(org.aspectj.lang.ProceedingJoinPoint pjp, int id, MowerDTO mowerUpdate) throws Throwable
      Throws:
      Throwable