Date: 2004-06-21T15:04:59
Editor: HowardLewisShip <[EMAIL PROTECTED]>
Wiki: Jakarta HiveMind Wiki
Page: FrequentlyAskedQuestions
URL: http://wiki.apache.org/jakarta-hivemind/FrequentlyAskedQuestions
no comment
Change Log:
------------------------------------------------------------------------------
@@ -47,3 +47,15 @@
}}}
The addition of this functionality to the BulderFactory doesn't actually
require changes to the core module implementation but rather just the addition
of an element in the BuilderFactory schema definition and a translator. Is
there anyway of extending BuilderFactory's schema defined in core hivemind
module?
+
+HowardLewisShip: I think there may be a proposal about making it easier to
reuse and extend portions of a schema. !BuilderFactory's parameter's schema is
massively complex.
+
+An OGNL builder parameter element might look something like:
+
+{{{
+set-expression (property=datasource expression=<<
+ service["hivemind.lib.NameLookup"].lookup("java:/jdbc/myDS")
+>>)
+}}}
+
+This would imply a magic {{{service}}} property attached to {{{Module}}} that
could invoke {{{getService(String,Class)}}}. I may end up building something
like this for Tapestry, since Tapestry already has an OGNL dependency.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]