[dna-issues] [JBoss JIRA] Commented: (DNA-252) Complete support for events to the connector framework

Randall Hauch (JIRA) jira-events at lists.jboss.org
Thu May 21 13:08:58 EDT 2009


    [ https://jira.jboss.org/jira/browse/DNA-252?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12468721#action_12468721 ] 

Randall Hauch commented on DNA-252:
-----------------------------------

Added support in all of the connectors for publishing their change requests.  This was done by adding code to RequestProcessor that records the ChangeRequest objects and, upon closing the processor, submits those as a change event to the RepositoryContext's observer.  Note that if there is no observer, the processor short-circuits its recording of changes.  

Since every connector (right now) subclasses RequestProcessor, the only thing each connector implementation is responsible for doing (other than passing in the observer into the RequestProcessor's constructor, or null if the connector is read-only) is to call "recordChange(ChangeRequest)" at the end of each "process(...)" method.  

I had hoped there was a way of automatically doing this, but the RequestProcessor's model of providing some default implementations of some "process(...)" methods by delegating to other "process(...)" methods means that any process method that called another process method would result in duplicate change requests being published.  But alas, it is simple thing in each process(...) method implementation.

> Complete support for events to the connector framework
> ------------------------------------------------------
>
>                 Key: DNA-252
>                 URL: https://jira.jboss.org/jira/browse/DNA-252
>             Project: DNA
>          Issue Type: Task
>          Components: Connectors
>    Affects Versions: 0.3
>            Reporter: Randall Hauch
>            Assignee: Randall Hauch
>            Priority: Blocker
>             Fix For: 0.5
>
>
> The connector's support for events is incomplete.  There is the ability to add listeners to connections, but there are no methods on the listeners and no definition of what an event is.  This needs to be compatible with the Requests and JCR's event listeners.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the dna-issues mailing list