In Tapestry 4 when you create an Engine Service you have to tell your
hivemodule.xml that it exists so that Hivemind injects the service when needed. You might want to look at an introduction of IoC http://www.martinfowler.com/articles/injection.html

Hivemind is kind of a inversion of control container, you declare services into it and the you can later inject them anywhere in your application. for example you could create a : Database access service with a singleton pattern and the when needed you could just inject it into one of your components or pages without the need of having to instantiate it.

It is way easier than it looks and its way powerful.

best regards.

Raul.


Vincent wrote:
Later in your hivemodule.xml:

<contribution configuration-id="tapestry.services.ApplicationServices">
  <service name="pdf" object="service:ExcelToBrowser" />
</contribution>

<service-point id="ExcelBrowser"
interface="org.apache.tapestry.engine.IEngineService">
  <invoke-factory model="singleton">
   <construct class="yourpackage.ExcelToBrowser" />
  </invoke-factory>
</service-point>
Hi guys,

Thank you for you information , I am new to Tapestry , what does this
needs to use
hivemodule.xml?

regards,
Vincent


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

Reply via email to