So next question; should I kill the security file watch after
transitioning? Or just deprecate it as "unused". There may be some custom
security implementations that use it after all...

In general during this work I have been checking the call hierarchy and
deprecating unused methods so we can remove them later.

Jody Garnett


On Thu, Mar 13, 2014 at 2:54 AM, Christian Mueller <
[email protected]> wrote:

> Yep, I can remember the plan to remove the security file watcher.  Using
> the platform file watcher is more consistent, +1 here.
>
>
> On Wed, Mar 12, 2014 at 3:14 PM, Justin Deoliveira <
> [email protected]> wrote:
>
>>
>>
>>
>> On Wed, Mar 12, 2014 at 1:42 AM, Jody Garnett <[email protected]>wrote:
>>
>>> I am rounding up all the "file watcher" like things for the next
>>> ResourceStore API pull request.
>>>
>>> So far I have found:
>>>
>>> 1) platform 
>>> FileWatcher<https://github.com/geoserver/geoserver/blob/master/src/platform/src/main/java/org/geoserver/platform/FileWatcher.java>
>>>  (lazy)
>>> 2) security 
>>> FileWatcher<https://github.com/geoserver/geoserver/blob/master/src/main/src/main/java/org/geoserver/security/file/FileWatcher.java>
>>>  (active
>>> - extends Thread)
>>> 3) 
>>> GeoServerTemplateLoader<https://github.com/geoserver/geoserver/blob/master/src/main/src/main/java/org/geoserver/template/GeoServerTemplateLoader.java>
>>>  (extends
>>> freemarker 
>>> templateloader<http://freemarker.org/docs/api/freemarker/cache/class-use/TemplateLoader.html>
>>> )
>>>
>>
>> For the security file watcher actually using the platform version is
>> something we wanted to do but never got a chance. So if simplifies things
>> to remove (2) by all means do. Christian can correct me if i am wrong but I
>> don't think its required to watch for modifications in a separate head,
>> actually it adds unnecessary overhead.
>>
>>>
>>> So did I miss anyone?
>>>
>>> On first inspection these implementations are not used very much, but
>>> have the trick of not hitting the file system often. One thing I did not
>>> expect was the two file watchers requiring subclassing before use. I will
>>> look at replacing this with a strategy object.
>>> --
>>> Jody Garnett
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Learn Graph Databases - Download FREE O'Reilly Book
>>> "Graph Databases" is the definitive new guide to graph databases and
>>> their
>>> applications. Written by three acclaimed leaders in the field,
>>> this first edition is now available. Download your free book today!
>>> http://p.sf.net/sfu/13534_NeoTech
>>> _______________________________________________
>>> Geoserver-devel mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/geoserver-devel
>>>
>>>
>>
>>
>> --
>> *Justin Deoliveira*
>> Vice President, Engineering | Boundless
>> [email protected]
>> @j_deolive <https://twitter.com/j_deolive>
>>
>>
>> ------------------------------------------------------------------------------
>> Learn Graph Databases - Download FREE O'Reilly Book
>> "Graph Databases" is the definitive new guide to graph databases and their
>> applications. Written by three acclaimed leaders in the field,
>> this first edition is now available. Download your free book today!
>> http://p.sf.net/sfu/13534_NeoTech
>> _______________________________________________
>> Geoserver-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/geoserver-devel
>>
>>
>
>
> --
> DI Christian Mueller MSc (GIS), MSc (IT-Security)
> OSS Open Source Solutions GmbH
>
>
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to