Class MyAccessAspects

java.lang.Object
info.ejava.examples.svc.aop.items.proxyfactory.MyAccessAspects

public class MyAccessAspects extends Object
This programmatic implementation of a Introduction artificially breaks the solution into two separate advice: 1) decorate the POJO with extra access field(s) and 2) determine the caller accesses and assigning markings to the POJO. The advice had to be separated into two separate Aspects in order to define a deterministic order.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    (package private) static class 
    This advice runs second/last to identify the caller accesses and annotate the Introduction with those values.
    (package private) static class 
    This advice runs first to invoke the business method and then augment the response object with an implementation of the MyAccessIntroduction interface.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Match all getItem methods of the targeted package that return any type of object.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MyAccessAspects

      public MyAccessAspects()
  • Method Details

    • getter

      public void getter()
      Match all getItem methods of the targeted package that return any type of object.