> I haven't used decoration before, but I'm guessing that even with
> decorators you must still provide a service id.
Chris:
Thanks for your reply. As I understand decorators - the service id is
the same as the service it is decorating. This is because a decorator is
a wrapper around a service and implements the same interface as the
service. The calling code doesn't know that it is interacting with a
decorator.
We are using decorators extensively in our code base - but this is the
first time we have multiple decorators on a single service.
Perhaps I am missing something here. If so - maybe you could elaborate
on how the service id should be defined.
In the meantime - I have simplified my code a little in the hopes that
simplicity helps highlight the problem. Here is my current code in the
sub-module - this code never gets executed and consequently - my
decorator code in PageRenderRequestHandlerDecorator is not invoked
either.
public PageRenderRequestHandler
decoratePageRenderRequestHandler(Class<PageRenderRequestHandler>
serviceInterace, Object delegateObj) {
PageRenderRequestHandler castDelegate = (PageRenderRequestHandler)
delegateObj;
PageRenderRequestHandlerDecorator decorator = new
PageRenderRequestHandlerDecorator(castDelegate);
return decorator;
}
Is there anyone on this list who does have experience with using
decorators in a sub-module and can tell me what I am doing wrong - or
who can verify this is a bug in T5?
Thanks.
David Kendall
Software Architect
Lithium Technologies
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]