Current Position:Home > AOP -- is this a reasonable use?

AOP -- is this a reasonable use?

Update:11-30Source: network consolidation
Advertisement
I'm a bit new to AOP (I'm using spring, if that matters), it occurs to me that data validation is a good case for using AOP. I can set a joinpoint before data is provided to an object and then have the advice be to call one or more validators on that data. The question becomes how to reasonably handle the case where validation fails. Should it perhaps throw an exception and have the interface to the object declared to indicate that the exception is possible so that the caller will handle the case where the object wants its data validated? Any thoughts here?

The Best Answer

Advertisement
zanyjudy wrote:
Very interesting. Although it doesn't specifically answer the question it does suggest that the transfer rate I am getting is good, that is encouraging.
It's fairly good. Mine run somewhat faster, but there are many variables.
Try the things in #D2 of Time Machine - Troubleshooting (or use the link in *User Tips* at the top of this forum). One or more may help.
  • Activity log design issue in web application .. Whatabout AOP ? Update:10-11

    Hi guys. .. I am working on a big web application in which there is module called activity log which actually logs most of the activities one perform in application like make a payment , defere the payment , issue the check etc. Almost all components

  • AOP JoinPoint not getting executed Update:10-11

    The spring configuration that I have is <beans xmlns="http://www.springframework.org/schema/beans"   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframework.org/schema/aop"   xsi:schemaL

  • Connecting to AOP data store with multiple NIC's Update:11-30

    I have a situation where I need to have the computer running Diadem to be connected to two different networks.  I have two NIC's installed in the machine, NIC A and NIC B, we will call them.  The reason for this, is that I am using Diadem to access a

  • Help with Javassist/AOP? Update:11-30

    I am trying to modify a Class which is already loaded. I thought I understood from Javassist tutorials and the API docs that this is possible. What I am wanting to do is add a method. I have Hibernate entities with getters and setters, and an API to

  • JSF + Spring / AOP Update:11-30

    Hi, I have a problem when I try to run a web application where I use JSF with Springs AOP Here's my spring.xml: <beans> <!-- Bean Classes --> <bean id="beanTarget" class="BusinessLogic" /> <!-- Advice classes -->

  • Interceptor VS proxy VS AOP Update:11-30

    interceptor VS proxy VS AOP 3 of these is it the same?Yes, the reference plugin API has changed between the spec and what's in public trunk, and in fact we're hoping to nail down the last details of that API on Monday.  (The short summary of the plan

  • AOP -- is this a reasonable use? Update:11-30

    I'm a bit new to AOP (I'm using spring, if that matters), it occurs to me that data validation is a good case for using AOP. I can set a joinpoint before data is provided to an object and then have the advice be to call one or more validators on that

  • Is AOP (Aspect Oriented Programming) concept there in SAP NetWeaver AS ? Update:11-30

    Hi all, Will SAP support AOP....? If so can anyone tell how to implement AOP in Java to monitor the applications deployed in the NetWeaver Application server... thanks Rafi.Hello, To my knowledge support of AOP templates has not started yet with SAP.

  • What about the AOP's perspective Update:11-30

    hi everyone: Recently,I found a book about ADOP.I think it is very interesting.Why does so few people use this technique?is the ADOP not a mature technique?ADOP? Or AOP? A lot of people are already (somewhat unwittingly) using AOP, or a subset of suc

  • Two new articles on AOP And JRockit Update:11-30

    Check out http://dev2dev.bea.com/pub/a/2005/08/jvm_aop_1.html and http://dev2dev.bea.com/pub/a/2005/08/jvm_aop_2.html for the great series of articles on JRockit JVM Support For AOP. Regards, Jon http://dev2dev.bea.com/blog/editors/iTunes: Back up yo