You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Udo Abel <ud...@gmx.de> on 2008/07/02 14:41:51 UTC

T5 howto manually add a service module?

Hi,

I want to add some services to the T5 IoC resgistry and have read a number of pages on how to write such a service, but I havn't found instructions on how to add the module class with service definitions to the registry, besides the hint that T5 autoloads module classes found in the manifest of jars.
I have also tried the default app module name constructed from the filter name, but that seems not to work.

Is there a way tp explicitly add a module class to tzhe registry?

Thanls,
Udo.

-- 
Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten 
Browser-Versionen downloaden: http://www.gmx.net/de/go/browser

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: T5 howto manually add a service module?

Posted by Udo Abel <ud...@gmx.de>.
Thanks.

I was not precise enough: the application module DOES load when I put it in a jar with a manifest containing the Tapestry-Module-Classes key, but it does not load just by the default name derived in the way described in the documentation.

But now i think that may be due to the developement environment. I'm running jetty 6.1.6 with the the run-jetty plugin under eclipse 3.3, so maybe T5 has some problems finding the package at load time (all other packages in the tree are found, though).

Regards,
Udo.


-------- Original-Nachricht --------
> Datum: Wed, 2 Jul 2008 07:39:47 -0700
> Von: "Howard Lewis Ship" <hl...@gmail.com>
> An: "Tapestry users" <us...@tapestry.apache.org>
> Betreff: Re: T5 howto manually add a service module?

> Yes, by subclassing the TapestryFilter class; there's a method to
> override that allows you to have greater control over what modules are
> loaded.
> 
> However, the easier way is to figure out why your AppModule is not
> being loaded; once that is loaded, you can place a @SubModule
> annotation on it to expressly load whatever modules you want.
> 
> On Wed, Jul 2, 2008 at 5:41 AM, Udo Abel <ud...@gmx.de> wrote:
> > Hi,
> >
> > I want to add some services to the T5 IoC resgistry and have read a
> number of pages on how to write such a service, but I havn't found instructions
> on how to add the module class with service definitions to the registry,
> besides the hint that T5 autoloads module classes found in the manifest of
> jars.
> > I have also tried the default app module name constructed from the
> filter name, but that seems not to work.
> >
> > Is there a way tp explicitly add a module class to tzhe registry?
> >
> > Thanls,
> > Udo.
> >
> > --
> > Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten
> > Browser-Versionen downloaden: http://www.gmx.net/de/go/browser
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
> 
> 
> 
> -- 
> Howard M. Lewis Ship
> 
> Creator Apache Tapestry and Apache HiveMind
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org

-- 
GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen!
Jetzt dabei sein: http://www.shortview.de/wasistshortview.php?mc=sv_ext_mf@gmx

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: T5 howto manually add a service module?

Posted by Howard Lewis Ship <hl...@gmail.com>.
Yes, by subclassing the TapestryFilter class; there's a method to
override that allows you to have greater control over what modules are
loaded.

However, the easier way is to figure out why your AppModule is not
being loaded; once that is loaded, you can place a @SubModule
annotation on it to expressly load whatever modules you want.

On Wed, Jul 2, 2008 at 5:41 AM, Udo Abel <ud...@gmx.de> wrote:
> Hi,
>
> I want to add some services to the T5 IoC resgistry and have read a number of pages on how to write such a service, but I havn't found instructions on how to add the module class with service definitions to the registry, besides the hint that T5 autoloads module classes found in the manifest of jars.
> I have also tried the default app module name constructed from the filter name, but that seems not to work.
>
> Is there a way tp explicitly add a module class to tzhe registry?
>
> Thanls,
> Udo.
>
> --
> Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten
> Browser-Versionen downloaden: http://www.gmx.net/de/go/browser
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>



-- 
Howard M. Lewis Ship

Creator Apache Tapestry and Apache HiveMind

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org