You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by dick_hu <di...@gmail.com> on 2011/07/01 08:35:54 UTC
IOC Classes in a package
Did T5 IOC has the features that can IOC Classes in a package like spring
org.mybatis.spring.mapper.MapperScannerConfigurer,it can ioc by the config
like this
I want to uses these services on T5's advise,but these is IOC by the
spring,so advise is no use to them.
So I want to know has a way I can IOC more than one class in one time.
If it is no way , please tell me has another way to do like this.
I am unfamiliar the relation T5 with spring.
can anyone help me thank you.
--
View this message in context: http://tapestry.1045711.n5.nabble.com/IOC-Classes-in-a-package-tp4541141p4541141.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
Re: IOC Classes in a package
Posted by dick_hu <di...@gmail.com>.
Taha Hafeez wrote:
>
> Here is an example of ClassNameLocator to create entity daos for entities
> in a given package
>
> http://tawus.wordpress.com/2011/04/28/tapestry-magic-9-integrating-with-hibernate-and-multiple-database-support/
>
> Regards
> Taha
>
> On Jul 1, 2011, at 6:55 PM, "Thiago H. de Paula Figueiredo"
> <thiagohp@gmail.com> wrote:
>
>> On Fri, 01 Jul 2011 10:08:06 -0300, dick_hu <dickannie@gmail.com>
>> wrote:
>>
>>> Yeah,you know me.
>>> you mean there is no way to add service/beans by a package name?
>>
>> Not out-of-the-box.
>>
>>> because I have little knowledge about T5 can you give me any example
>>> about "ClassNameLocatorImpl"
>>
>> Take a look at how it's used in the Tapestry sources. :)
>>
>>> you can send to my email dickannie@gmail.com
>>
>> We send examples to the mailing list so everybody can learn form them. :)
>>
>> --
>> Thiago H. de Paula Figueiredo
>> Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
>> and instructor
>> Owner, Ars Machina Tecnologia da Informação Ltda.
>> http://www.arsmachina.com.br
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
Thank you very much. I will work hard in T5.
--
View this message in context: http://tapestry.1045711.n5.nabble.com/IOC-Classes-in-a-package-tp4541141p4542280.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: IOC Classes in a package
Posted by Taha Tapestry <ta...@gmail.com>.
Here is an example of ClassNameLocator to create entity daos for entities in a given package
http://tawus.wordpress.com/2011/04/28/tapestry-magic-9-integrating-with-hibernate-and-multiple-database-support/
Regards
Taha
On Jul 1, 2011, at 6:55 PM, "Thiago H. de Paula Figueiredo" <th...@gmail.com> wrote:
> On Fri, 01 Jul 2011 10:08:06 -0300, dick_hu <di...@gmail.com> wrote:
>
>> Yeah,you know me.
>> you mean there is no way to add service/beans by a package name?
>
> Not out-of-the-box.
>
>> because I have little knowledge about T5 can you give me any example about "ClassNameLocatorImpl"
>
> Take a look at how it's used in the Tapestry sources. :)
>
>> you can send to my email dickannie@gmail.com
>
> We send examples to the mailing list so everybody can learn form them. :)
>
> --
> Thiago H. de Paula Figueiredo
> Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor
> Owner, Ars Machina Tecnologia da Informação Ltda.
> http://www.arsmachina.com.br
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: IOC Classes in a package
Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
On Fri, 01 Jul 2011 10:08:06 -0300, dick_hu <di...@gmail.com> wrote:
> Yeah,you know me.
> you mean there is no way to add service/beans by a package name?
Not out-of-the-box.
> because I have little knowledge about T5 can you give me any example
> about "ClassNameLocatorImpl"
Take a look at how it's used in the Tapestry sources. :)
> you can send to my email dickannie@gmail.com
We send examples to the mailing list so everybody can learn form them. :)
--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: IOC Classes in a package
Posted by dick_hu <di...@gmail.com>.
Yeah,you know me.
you mean there is no way to add service/beans by a package name?
because I have little knowledge about T5 can you give me any example about
"ClassNameLocatorImpl"
you can send to my email dickannie@gmail.com
thank you!
--
View this message in context: http://tapestry.1045711.n5.nabble.com/IOC-Classes-in-a-package-tp4541141p4542088.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: IOC Classes in a package
Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
On Fri, 01 Jul 2011 03:35:54 -0300, dick_hu <di...@gmail.com> wrote:
> Did T5 IOC has the features that can IOC Classes in a package like spring
> org.mybatis.spring.mapper.MapperScannerConfigurer,it can ioc by the
> config like this
What do you mean by "to IoC classes"? Add them as services/beans
automatically? If yes, the answer is no, but you can use
ClassNameLocatorImpl inside an Tapestry-IoC module class's bind() method.
--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org