Results 1 to 2 of 2

Thread: could AOP programming do such thing ?

  1. #1

    Default could AOP programming do such thing ?

    could AOP programming do such thing ?

    a method named listAll() return all records from a database table,

    could use AOP programming for limit the return records by visitor's role?

  2. #2
    Join Date
    Jan 2005
    Location
    Bucharest, Romania
    Posts
    5,403

    Default

    Your question is generic - so the answer is 'it depends. For example, you can use an interceptor which simply 'chops off' the result - you listAll would still return all the database fields.
    If you want to modify the listAll() method through AOP then it really depends on how the method is implemented. You can do a total rewrite of listAll() (i.e. listAllNew()) and delegate all calls to listAll to listAllNew() for example.
    AOP is not a silver bullet - not in every situation at least
    Costin Leau
    SpringSource - http://www.SpringSource.com- Spring Training, Consulting, and Support - "From the Source"
    http://twitter.com/costinl
    Please use [ c o d e ] [ / c o d e ] tags

Similar Threads

  1. A factory that takes an argument
    By jlindwall in forum Container
    Replies: 10
    Last Post: Aug 1st, 2005, 01:05 PM
  2. Strange thing happened !
    By markt in forum Data
    Replies: 2
    Last Post: Jul 6th, 2005, 11:01 AM
  3. Replies: 0
    Last Post: Jun 8th, 2005, 11:55 AM
  4. Replies: 1
    Last Post: May 7th, 2005, 03:24 AM
  5. Replies: 1
    Last Post: Oct 26th, 2004, 12:15 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •