We do it like this:

Service:
<service-point id="MenuBuilder" interface="MenuBuilder"/>

Service implemantation
<implementation service-id="bookie.framework.MenuBuilder">
       Implementation of the menu builder
       <invoke-factory model="stateful">
           <construct class="impl.MenuBuilderImpl" />
       </invoke-factory>
</implementation>

Inject it into your page:
@InjectObject("service:bookie.framework.MenuBuilder")
public abstract MenuBuilder getMenuBuilder();

On 6/6/07, Andrea Chiumenti <[EMAIL PROTECTED]> wrote:

Hello,
I've a simple quesition.
I've built a menu component that is composed via hivemind
configuration/contribution.
What should I use to provide the menu tree to my application:
1) Sould I use a specific singleton service provided by the BuilderFactory
2) Inject the tree into tapestry.Infrastructure and retrieve it via
Infrastructure.getProperty("appMenu") ?

Or any other solution ?

Thanks in advance,
kiuma

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


Reply via email to