On 3/23/07, Carlos Pita <[EMAIL PROTECTED]> wrote:
> i wouldnt be able to do this with @Configurable because since my
> genericdataprovider is not @Configurable and there is no way to make it so
> it cannot restore its, what would have to be a transient, reference to the
> genericfinder.
>
I clearly see what you mean now. Maybe you can define another pointcut for
the ConfigurerAspect that is not annotation based so you can advice classes
which you are not able to modify. But anyway the simplicity that appealed me
at first about my suggestion was somewhat lost in the way. As a newbie I
would ask: is your example an every day case or a contrived degenerate case
or somewhere in the middle?
i dont have a genericfinder interface, but i do use the pattern where i pass
in a service down into a model or a dataprovider all the time.
eg
new UsersInRoleDataProvider(userservice,role)
so it is a little bit contrived, but mostly an every-day usecase in my app
-igor
Cheers,
Carlos
-igor
>
>
> Anyway I'm still not sure whether my proposal is technically correct or
> > not.
> >
> >
> > > just my 2c, at the end its whatever works best for you
> >
> >
> >
> >
> > Ditto :).
> >
> > Cheers,
> > Carlos
> >
> >
> >
> > -igor
> > >
> > >
> > >
> > >
> > > On 3/23/07, Carlos Pita < [EMAIL PROTECTED]> wrote:
> > >
> > > > Hi all,
> > > >
> > > > I'm very new to Wicket (with no more than a few hours of fly). I
> > > > would like to integrate it with the spring
AplicationContext/BeanFactory so
> > > > I've been reading the solutions described in
> > > > http://www.wicket-wiki.org.uk/wiki/index.php/Spring. I've nothing
> > > > to object to them but I think it would be possible to get the
integration by
> > > > means of the @Configurable annotation that spring 2 offers too. This
> > > > annotation injects dependencies upon bean instantiation (ie. with new)
based
> > > > on a prototype scope bean definition. Also from version 2.0.3onwards
this annotation would inject dependencies after deserialization as
> > > > described in this jira:
http://opensource.atlassian.com/projects/spring/browse/SPR-2896
> > > > . So you can declare your dependencies as transient and expect
> > > > them to be injected at instantiation-time and at deserialization-time.
> > > > Weaving can be done at compile-time and at loading-time. If you are
already
> > > > using aspectj with spring, for example for domain object dependency
> > > > injection, you won't need extra stuff to make it inject Wicket pages'
> > > > properties. I have written a toy example of this approach and it seems
to
> > > > work fine. What do you think? Maybe I'm missing something.
> > > >
> > > > Cheers,
> > > > Carlos
> > > >
> > > >
> > > >
-------------------------------------------------------------------------
> > > > Take Surveys. Earn Cash. Influence the Future of IT
> > > > Join SourceForge.net's Techsay panel and you'll get the chance to
> > > > share your
> > > > opinions on IT & business topics through brief surveys-and earn
> > > > cash
> > > >
> > > >
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > > > _______________________________________________
> > > > Wicket-user mailing list
> > > > Wicket-user@lists.sourceforge.net
> > > > https://lists.sourceforge.net/lists/listinfo/wicket-user
> > > >
> > > >
> > >
> > >
> > > -------------------------------------------------------------------------
> > > Take Surveys. Earn Cash. Influence the Future of IT
> > > Join SourceForge.net's Techsay panel and you'll get the chance to
> > > share your
> > > opinions on IT & business topics through brief surveys-and earn cash
> > >
> > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > > _______________________________________________
> > > Wicket-user mailing list
> > > Wicket-user@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >
> > >
> >
> >
> > -------------------------------------------------------------------------
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to
> > share your
> > opinions on IT & business topics through brief surveys-and earn cash
> >
> > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > _______________________________________________
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> >
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys-and earn cash
>
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user