The problem with that is that it doesn't address the situation where
the reference is passed elsewhere (like to a DataProvider).  With the
proxy-based approach (which wicket-spring does now), it does.

On Tue, Feb 22, 2011 at 4:34 PM, Bruno Borges <bruno.bor...@gmail.com> wrote:
> Hi everyone,
>
>    A friend was playing with Wicket and Spring and suggested that the
> Spring integration could have a injector that could call the
> AutowireCapableFactory of Spring to process Spring-native annotations, like
> @Autowired and @Value.
>
>      @Override
> public void onInstantiation(Component arg0) {
> contextLocator.getSpringContext().getAutowireCapableBeanFactory().autowireBean(arg0);
> }
>
> What do you guys think of this?
>
> Best regards,
>
> Bruno Borges
> www.brunoborges.com.br
> +55 21 76727099
>
> "The glory of great men should always be
> measured by the means they have used to
> acquire it."
>  - Francois de La Rochefoucauld
>

Reply via email to