Java 5
Tapestry 4.0.x

I  would like to make runtime checks to determine if a link will render.
To avoid configuration tedium we do not want to use custom link
renderers.  

The desired solution would behave like around advice, it would:
- intercept the render() call (or some other method with HTML generation
responsibilities)
- make a runtime check based on the user authorizations and the target
(e.g. page, component etc)
- call/skip the superclasses/targets default render() implementation

Based on a variety of other posts, it seems like the EnhancementWorker
and EnhancementOperation are best suited for this.
EnhancementOperation.addMethod() would allow me to extend the base
component class and add any arbitrary code.  However, if any other
worker has modified the method, the EnhancementOperation will throw an
exception.  I assume the same would happen if a worker attempted to use
extendMethodImplementation on the render() method.

This might be a moot point, because I we don't use any
EnhancementWorker's that conflict with our impl.  However, all things
being equal, I would like a guarantee that our enhancement won't cause a
runtime conflict.

Is there a better way to provide these enhancements, perhaps using
Hivemind's proxy support?

Thanks for any help!

Carlos






---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to