JAsCo - PowerPoint PPT Presentation

About This Presentation
Title:

JAsCo

Description:

JAsCo. an Aspect-Oriented approach tailored for. Component Based ... Transaction.begin(); try { doTheThing(); Transaction.commit(); } catch(Exeception e) ... – PowerPoint PPT presentation

Number of Views:91
Avg rating:3.0/5.0
Slides: 13
Provided by: noahs1
Learn more at: http://cs.ecs.baylor.edu
Category:
Tags: jasco | begin

less

Transcript and Presenter's Notes

Title: JAsCo


1
JAsCo
  • an Aspect-Oriented approach tailored for
  • Component Based Software Development

2
Crosscutting Concerns
  • public long doSomething()
  • if(!Security.isAuthorized())
  • return AUTHERROR
  • Transaction.begin()
  • try
  • doTheThing()
  • Transaction.commit()
  • catch(Exeception e)
  • Log.error(e)
  • Transaction.rollback()
  • return 0

3
Security
  • public long doSomething()
  • if(!Security.isAuthorized())
  • return AUTHERROR
  • Transaction.begin()
  • try
  • doTheThing()
  • Transaction.commit()
  • catch(Exeception e)
  • Log.error(e)
  • Transaction.rollback()
  • return 0

4
Consistency
  • public long doSomething()
  • if(!Security.isAuthorized())
  • return AUTHERROR
  • Transaction.begin()
  • try
  • doTheThing()
  • Transaction.commit()
  • catch(SomeErrorEvent e)
  • Log.error(e)
  • Transaction.rollback()
  • return 0

5
Logging
  • public long doSomething()
  • if(!Security.isAuthorized())
  • return AUTHERROR
  • Transaction.begin()
  • try
  • doTheThing()
  • Transaction.commit()
  • catch(Exeception e)
  • Log.error(e)
  • Transaction.rollback()
  • return 0

6
Actual Purpose
  • public long doSomething()
  • doTheThing()

7
Join Points
  • Method Invocations / Property Accesses
  • On Events

Interceptor
Glue Code/ Component/ Environment
Component
Invocation
Event
8
Weaving
Component
Subclass
Logging Aspect
Security Aspect
doSomething()
9
JAsCo Keywords
  • hook
  • connector
  • execute
  • cflow
  • on event
  • signature wildcards

10
(No Transcript)
11
(No Transcript)
12
(No Transcript)
Write a Comment
User Comments (0)
About PowerShow.com