On 7/5/07, Jean-Baptiste Quenot <[EMAIL PROTECTED]> wrote:

> cant we have something
>
> @Mount(path="/myurl/")
> public class MyPage extends WebPage ...
>
> and the Wicket Runtime autowires this

Who/what would be looking for this annotation during application
initialization?  Can you elaborate?


we can have an xml file where you define all your pages. then wicket can use
that to scan them all and see if they have any annotations :)

more seriously, we can file browse .class files, load them, and check if
they have those annots, but that is pretty heavy.

the problem with such decentralized configuration is that you may have
collisions. once you start breaking up your app into jars or introducing
other jars all of a sudden you will have mounts that you dont want/collide.
for example if wicket-auth comes with a login page that @Mounts itself on
/login, and you want to mount your own, how do you override?

-igor
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to