SLIDE 1
Using Python Decorators as Java-style Annotations
Jeff Bauer
Using Python Decorators as Java-style Annotations Jeff Bauer - - PowerPoint PPT Presentation
Using Python Decorators as Java-style Annotations Jeff Bauer AspectJ - Before/After Output: @AspectJ - Before/After Output: Syntax Before/After Around def MyFunction(): def MyFunction(): --do something-- --do something--
Jeff Bauer
Output:
Output:
Before/After def MyFunction():
@Before(<pointcut>) def MyAdvice():
Around def MyFunction():
@After(<pointcut>) def MyAdvice(proceed, *args, **kwargs):
○ Access things other than what is passed in ○ Differentiate between call & execution
○ Global, Class, Static