Carsten Ziegeler resolved SLING-6105.
    Resolution: Fixed

No configuration needed anymore, the bridge is only registered if there are 
event handlers interested in resource events.
Prints a warning about the event handler 

> Register old resource event bridge automatically
> ------------------------------------------------
>                 Key: SLING-6105
>                 URL: https://issues.apache.org/jira/browse/SLING-6105
>             Project: Sling
>          Issue Type: Sub-task
>          Components: ResourceResolver
>            Reporter: Carsten Ziegeler
>            Assignee: Carsten Ziegeler
>            Priority: Critical
>             Fix For: Resource Resolver 1.5.0
> Currently the observation to OSGi events bridge is only registered if a 
> configuration is available. However, this 
> a) adds the need of a configuration
> b) if event handlers are available but the configuration is missing, the 
> system does not work
> c) if no event handlers are available but the configuration is, events are 
> send with no one listening
> We can improve the mechanism, by adding a service tracker for event handlers 
> listening for resource events. If there are any, we register the bridge. If 
> there are none, we don't

This message was sent by Atlassian JIRA

Reply via email to