You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Jukka Zitting (JIRA)" <ji...@apache.org> on 2013/05/02 11:44:16 UTC

[jira] [Updated] (JCR-3586) NonExternalEventListener marker interface

     [ https://issues.apache.org/jira/browse/JCR-3586?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jukka Zitting updated JCR-3586:
-------------------------------

    Description: 
It would be useful to have a marker interface like the following in the Jackrabbit API:

    interface NonExternalEventListener extends EventListener { }

The observation dispatcher could then avoid delivering any external events to that listener.

For backwards compatibility such a listener should still use an "if (!event.isExternal()) { ... }" wrapper for event processing. That way the listener can avoid processing external events also when registered with an older repository that doesn't know about this marker interface.

  was:
It would be useful to have a marker interface like the following in the Jackrabbit API:

    interface NonExternalObservationListener extends ObservationListener { }

The observation dispatcher could then avoid delivering any external events to that listener.

For backwards compatibility such a listener should still use an "if (!event.isExternal()) { ... }" wrapper for event processing. That way the listener can avoid processing external events also when registered with an older repository that doesn't know about this marker interface.

        Summary: NonExternalEventListener marker interface  (was: NonExternalObservationListener marker interface)
    
> NonExternalEventListener marker interface
> -----------------------------------------
>
>                 Key: JCR-3586
>                 URL: https://issues.apache.org/jira/browse/JCR-3586
>             Project: Jackrabbit Content Repository
>          Issue Type: New Feature
>          Components: jackrabbit-api
>            Reporter: Jukka Zitting
>            Priority: Minor
>
> It would be useful to have a marker interface like the following in the Jackrabbit API:
>     interface NonExternalEventListener extends EventListener { }
> The observation dispatcher could then avoid delivering any external events to that listener.
> For backwards compatibility such a listener should still use an "if (!event.isExternal()) { ... }" wrapper for event processing. That way the listener can avoid processing external events also when registered with an older repository that doesn't know about this marker interface.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira