decorate != advise
You'll need to read the docs here
http://tapestry.apache.org/tapestry-ioc-decorators.html
On 18 May 2013 15:02, "Boris Horvat" wrote:
> Hm...strange this method of mine is not invoked, any idea as to why?
>
>
> On Sat, May 18, 2013 at 3:57 PM, Boris Horvat >wrote:
>
> > I do
Hm...strange this method of mine is not invoked, any idea as to why?
On Sat, May 18, 2013 at 3:57 PM, Boris Horvat wrote:
> I dont suppose that will be as simple as
>
>
> @Match("*")
> public static T decorateLogging(Class serviceInterface, T delegate,
> String serviceId, Logger logger,
>
I dont suppose that will be as simple as
@Match("*")
public static T decorateLogging(Class serviceInterface, T delegate,
String serviceId, Logger logger,
LoggingDecorator decorator)
{
return decorator.build(serviceInterface, delegate, serviceId, logger);
}
Well I tried this
On Fri, 17 May 2013 16:02:32 -0300, Boris Horvat
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
---
Hi all,
I have tree classes that I would like to advise for logging. However they
are normal class (not much point in making them interface as that would
just another layer that I really dont need for this).
I have tried
@Match({"SystemManager", "ManageX", "ManageY", "ManageZ"})
public stat