[ http://jira.jboss.com/jira/browse/JBAS-303?page=history ]
     
Scott M Stark closed JBAS-303:
------------------------------

    Resolution: Done

Use AOP.

> Allow for CMP 2.0 *concrete* set-/get-er
> ----------------------------------------
>
>          Key: JBAS-303
>          URL: http://jira.jboss.com/jira/browse/JBAS-303
>      Project: JBoss Application Server
>         Type: Feature Request
>   Components: CMP service
>     Versions: JBossAS-4.0.0 Final
>     Reporter: SourceForge User
>     Assignee: Scott M Stark

>
>
> SourceForge Submitter: slaboure .
> This idea comes from a student of the Geneva Training.
> Since CMP 2.0, it is no more possible to perform 
> synchronous validation work when setters are called, for 
> example, check that when setting a postal code, the 
> code must belong to a given interval.
> JBossCMP could be modified so that it allows for 
> *concrete* getter and setter in the bean implementation. 
> At runtime, when such a getter/setter is called, 
> JBossCMP will, before setting the new data, call the 
> user-provided implementation and, only if no exception 
> is raised, then set the data. This allows for the user 
> implementation to make any check/work and raise an 
> exception if he is not happy. The user implemented 
> concrete getter/setter will *not* deal with persistence, 
> only with checks.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.jboss.com/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-Development mailing list
JBoss-Development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to