I dont suppose that will be as simple as

@Match("*")
  public static <T> T decorateLogging(Class<T> serviceInterface, T delegate,
    String serviceId, Logger logger,
    LoggingDecorator decorator)
  {
    return decorator.build(serviceInterface, delegate, serviceId, logger);
  }



Well I tried this and it doesnt work. Do I have to provide my own
implementation for the LoggerDecorator interface?



On Sat, May 18, 2013 at 3:11 PM, Thiago H de Paula Figueiredo <
thiag...@gmail.com> wrote:

> On Fri, 17 May 2013 16:02:32 -0300, Boris Horvat <horvat.z.bo...@gmail.com>
> wrote:
>
>  Hi all,
>>
>
> Hi!
>
>
>  Any ideas if I can make this work without creating an interface?
>>
>
> Try decoration instead. Advice needs proxies, and proxies are only created
> for interface-based services.
>
> --
> Thiago H. de Paula Figueiredo
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: 
> users-unsubscribe@tapestry.**apache.org<users-unsubscr...@tapestry.apache.org>
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


-- 
Sincerely
*Boris Horvat*

Reply via email to