I've been kind of thrashing on this whole schema/DFA/validator thing. I decided (in the shower, where I do all my best thinking) to temporarily abandon formal validation, and concentrate on everything else.
Over the last couple of days, I've been using the existing HiveMind with Vista (work project), where I've been setting up all the startup, post-startup and shutdown tasks for the server as HiveMind services and contributions.
It's working like a charm, but is too verbose; contributions look something like:
<new> <set property="title" value="Cache Initialization"/> <set property="order" value="100"/> <set-create property="runnable" class="com.webct.vista.framework.cache.CacheStartup"/> </new>
Under the new system, this would look more like:
<task order="100" title="Cache Initialization"> <runnable class="com.webct.vista.framework.cache.CacheStartup"/> </task>
And its only that complex because I need a few different ways to define what to execute (the existing code is based on invoking static methods on classes, so I currently have a syntax for accomplishing that using reflection).
No comments:
Post a Comment
Please note that this is not a support forum for Tapestry. Requests for help will be deleted. Please subscribe to the Tapestry user mailing list if you are in need of support, or contact me directly for professional (for pay) support.
Spammers: Don't bother. I delete your comments and it's a waste of time for both of us. 垃圾邮件发送者:不要打扰。我删除您的评论和它的时间对我们双方的浪费