You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Adriano dos Santos Fernandes <ad...@uol.com.br> on 2009/03/30 14:03:24 UTC
WebResource and Guice
Hi!
I've this, on my Application class:
getSharedResources().add(name, new WebResource() {
private static final long serialVersionUID = 1L;
@Override
public IResourceStream getResourceStream()
{
return new AbstractResourceStream() {
private static final long serialVersionUID = 1L;
private @Inject TerceiroService service;
{
componentInjector.inject(this);
}
...
Would be there a nicer way to inject service in this case?
Adriano
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: WebResource and Guice
Posted by Martijn Dashorst <ma...@gmail.com>.
the only thing that comes to mind is salve
Martijn
On Mon, Mar 30, 2009 at 2:03 PM, Adriano dos Santos Fernandes
<ad...@uol.com.br> wrote:
> Hi!
>
> I've this, on my Application class:
>
> getSharedResources().add(name, new WebResource() {
> private static final long serialVersionUID = 1L;
>
> @Override
> public IResourceStream getResourceStream()
> {
> return new AbstractResourceStream() {
> private static final long serialVersionUID = 1L;
> private @Inject TerceiroService service;
>
> {
> componentInjector.inject(this);
> }
>
> ...
>
> Would be there a nicer way to inject service in this case?
>
>
> Adriano
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
--
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.3.5 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org