Title: Message
How about:
 
<invoke-factory ...>
  <method name="..." param="..."/>
  <method name="..." param="..."/>
  . . .
</invoke-factory>
 
This is what the parameters to the LoggingInterceptor look like, for example.
 
However, you could certainly design a schema (with an outer parametrs element, and nested inside a method element) that would be exactly what you provided.  Again, think of hivemind.BuilderFactory, with <contruct> around <set>s and such.
 
 

--
Howard M. Lewis Ship
Independent J2EE / Open-Source Java Consultant
Creator, Jakarta Tapestry
Creator, Jakarta HiveMind
http://howardlewisship.com

-----Original Message-----
From: Sikha, Naresh [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 19, 2004 2:19 PM
To: '[email protected]'
Subject: variable length parameters

Hivemind users,
 
How should I define a parameters-schema that describes a variable length list of parameters? I would like to configure as service as so:
 
<module id="mymodule" version="1.0.0.1">
  <service-point id="MyService" interface="mymodule.MyService">
    <invoke-factory service-id="mylib.MyServiceFactory">
      <parameters>
        <method name="serviceMethodOne" param="foo"/>
        <method name="serviceMethodTwo" param="bar"/>
      </parameters>
    </invoke-factory>
  </service-point>
</module>
And then be able to iterate over all <method/> entries in my parameters. Is this possible?
 
Thanks.
 

Naresh Sikha
Senior Staff, Technology Solutions
Charles Schwab & Co., Inc.
211 Main Street
SF211MN-07-347
San Francisco, CA 94105-1918

W: 415-667-1286
F: 415-667-9397

E: [EMAIL PROTECTED]
WARNING: All email sent to this address will be received by the Charles Schwab & Co., Inc. corporate email system and is subject to archival and review by someone other than the recipient.

 

Reply via email to