Hi,

On Mon, Aug 24, 2015 at 4:06 PM, Jörg Schaible <[email protected]
> wrote:

> Hi,
>
> I am migrating an old Wicket application running in Apache Felix and I
> wonder how I should register my initializer. According the migration docs I
> should move and rename the "/wicket.properties" file to "META-
> INF/wicket/<package>.properties".
>
> However, in Felix I have an URL for this resource like
> "bundle://18.0:1/META-INF/wicket/". This is obviously not supported in
> Application.collectWicketProperties().
>
>
We can make this method protected or add another method where you could
plug custom logic.


> For now, I can return to the deprecated name and location, but I wonder
> what
> is the migration path when this support is dropped?
>
> Why do you iterate over all existing files anyway, when you stop the
> iteration at the first occurrence (at least for jar protocol)? The easiest
> solution would be to look again for a "known" resource, simply gain the
> name
> of the properties file from the current application instance:
> this.getClass().getPackage.getName() + ".properties"
>

Because wicket.properties is something like a plugin system. It is not
properties of the Application, but properties which may define Application
extensions/mixins - o.a.w.IInitilizer.
I.e. by using IInitialize any Wicket library could participate in the
application start/stop to setup/cleanup whatever it needs.


>
> Then you can stop making assumptions about the URL. Unfortunately it is not
> possible to overwrite this behavior now because the interesting methods are
> either final or private.
>

Patches/PullRequests are very welcome!


>
> Cheers,
> Jörg
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to