[jboss-jira] [JBoss JIRA] Commented: (JBCACHE-85) PojoCache object event listener

Ben Wang (JIRA) jira-events at jboss.com
Sat Jul 15 23:23:11 EDT 2006


    [ http://jira.jboss.com/jira/browse/JBCACHE-85?page=comments#action_12339662 ] 
            
Ben Wang commented on JBCACHE-85:
---------------------------------

Currently, we use the AOP interceptors to implement the event notification.

1) For PojoCache API like attach and detach, we directly intercept and emit the notification in the code level.

2) For field access, we have a modified Oberserved/Oberserver pattern to do this with PojoCacheImpl as the Observer.

> PojoCache object event listener
> -------------------------------
>
>                 Key: JBCACHE-85
>                 URL: http://jira.jboss.com/jira/browse/JBCACHE-85
>             Project: JBoss Cache
>          Issue Type: Feature Request
>          Components: PojoCache
>            Reporter: Ben Wang
>         Assigned To: Ben Wang
>             Fix For: POJOCache
>
>   Original Estimate: 2 weeks
>  Remaining Estimate: 2 weeks
>
> Need to add a TreeCacheAop object event listener. Currently we have TreeCache listener to listen for individual node event. We need to listen the event at the object level instead. User may not be interested to listen at the node level. 
> We should have events for:
> * Object level
> * Field level
> 1. We will need to define a PojoCacheListener that has all these callbacks.
> 2. We should use annotation for user to denote interested points, e.g., a la EJB3 style call back
> Class Pojo
> {
>    int key;
>    @preCreated(pojoEvent)
>    @preModified(pojoEvent)
>    void someHandler();
> }
> where 
> Interface preModified {
>    getPojoEvent();
> }

-- 
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
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list