I did something like this for Hibernate back in the day.  I wrote an
APT processor that checked for all classes annotated with @Entity and
added those to a hibernate.cfg.xml file.

On Wed, May 7, 2008 at 3:20 AM, Johan Compagner <[EMAIL PROTECTED]> wrote:
> if the scanning of the classpath is expensive (i guess all classes are
>  loaded that are scanned..)
>  cant there be an option that the scanning is only done once?
>  When you create the jar so with maven/ant?
>  When creating the jar you are scanning everything and create a manifest
>  entries of all the packages.
>  those manifest entries are then read in when the jar is in the classpath
>
>  johan
>
>
>
>
>  On Tue, May 6, 2008 at 9:33 PM, Doug Donohoe <[EMAIL PROTECTED]> wrote:
>
>  >
>  > I am pleased to announce the 1.0 release of wicketstuff-annotation.
>  >
>  > Full documentation and explanation (e.g., what, why, how) is at the
>  > wicket-stuff wiki:
>  >
>  > http://wicketstuff.org/confluence/display/STUFFWIKI/wicketstuff-annotation
>  >
>  > A short example is at the end of this email.
>  >
>  > I would like to thank Mr Mean and Martijn Dashorst for their assistance in
>  > getting this project in TeamCity.  The process was fairly painless thanks
>  > to
>  > their work.
>  >
>  > Our pom.xml is pretty simple, is configured to generate javadoc and
>  > depends
>  > on wicketstuff-parent.  It should be a good example for other wicket-stuff
>  > projects (if they need one).
>  >
>  > Thanks,
>  >
>  > -Doug Donohoe
>  >
>  > Use wicketstuff-annotation to use Java Annotations and class path
>  > searching
>  > to mount your Wicket pages:
>  >
>  > ========================================================
>  > @MountPath(path = "terms")
>  > public class Terms extends WebPage { ... }
>  >
>  > @MountPath(path = "terms")
>  > @MountMixedParam(parameterNames={"sport", "show"})
>  > public class Dogs extends WebPage { ... }
>  > ========================================================
>  > public class MyWicketApplication extends WebApplication
>  > {
>  >    @Override
>  >    protected void init()
>  >    {
>  >        new
>  > AnnotatedMountScanner().scanPackage("com.acme.wicket.pages").mount(this);
>  >    }
>  > }
>  > ========================================================
>  > --
>  > View this message in context:
>  > 
> http://www.nabble.com/-announce--wicketstuff-annotation-1.0-released-tp17090601p17090601.html
>  > Sent from the Wicket - User mailing list archive at Nabble.com.
>  >
>  >
>  > ---------------------------------------------------------------------
>  > To unsubscribe, e-mail: [EMAIL PROTECTED]
>  > For additional commands, e-mail: [EMAIL PROTECTED]
>  >
>  >
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to