Thank you also Thiago! You are all awesome and so is tapestry :)
On 10 Aug 2015 18:19, "Thiago H de Paula Figueiredo" <thiag...@gmail.com>
wrote:

> On Mon, 10 Aug 2015 13:04:25 -0300, Stephen Nutbrown <steves...@gmail.com>
> wrote:
>
> This looks really good and will be really helpful to lots of people -
>> thank you!
>>
>
> +1!
>
> Is the "@ImportModule(CommonModule.class)" required?
>>
>
> For multi-module development with the common module project open and
> live-class-reloadable, yes. If you're just adding the common module JAR to
> the main project (or any project using it as a dependency) as a JAR
> directly, no. You can use both @ImportModule/@SubModule and the manifest
> entry at the same time without problems: Tapestry-IoC will only include one
> module class once no matter how many different times and ways you include
> it.
>
> But of course I had the problem that it doesn't seem to run my
>> contributeHibernateEntityPackageManager in HappyModule to add my entities
>> package (in my common module) to hibernate - maybe this is why. I'm away
>> from my work PC so I will have to check next time.
>>
>
> That's why.
>
> Also, is AppModule here needed?
>>
>> https://github.com/sveine/tapestry-multi-module-demo/blob/master/common/src/main/java/com/demo/commonlib/services/AppModule.java
>>
>
> If you main webapp project has anything Tapestry-IoC-related, like
> declaring services, contributing to them, decorating them or advising them,
> yes.
>
> If we do have to put "@ImportModule(CommonModule.class)" in the non-common
>> appmodules then it means that if we grab a module from some library or
>> repository that we need to know the name of the module which needs to be
>> imported for it to work (i'm sure this can't be right).
>>
>
> Yes, but you'll only use that when you have the library open as a project
> in your IDE. Remember, you still should add the manifest file entry to your
> library JARs.
>
> There is a good chance my understanding is wrong, but in my understanding
>> it's best to have the module be auto loaded without it needing importing,
>> simply by adding it to the classpath (or pom.xml), otherwise the main
>> projects need to know about the details of how the shared module work.
>>
>
> Same sentence above. Use both when developing in parallel.
>
> --
> Thiago H. de Paula Figueiredo
> Tapestry, Java and Hibernate consultant and developer
> http://machina.com.br
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

Reply via email to