Hi Robert,
Robert Hunter <robert.hunter <at> patersons.net> writes:
>
>
> I had the same issue and resolved it by creating an
> interface which my class then implemented.
yes, that's what Fernando suggested earlier in this thread, but that does not
work with Grails Controllers, because those are based on closures -- unless
of course I would only use the closures as wrappers around the interface
methods and apply any advice to the latter, e.g.:
class MyController implements MyInterface {
// the controller closure called from a Web client
def foo = {
// only redirect -- aspect would match this call I guess?
fooFromInterface()
}
public void fooFromInterface() {
// perform actual controller logic
}
}
not sure if this works... btw, will some closure "foo" name-clash with a public
method foo() from an interface?
Best,
Matthias
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email