Re: Tapestry-IoC and Runnable/ThreadPoolExecutor

2014-10-07 Thread Thiago H de Paula Figueiredo
On Tue, 07 Oct 2014 09:45:21 -0300, Chris Mylonas wrote: Hi All Tapestry Ppl, Hi! aaa) What are the basics in firing it up? Say from a main() method, *unmanaged* i know...i read the IoC overview :) http://tapestry.apache.org/starting-the-ioc-registry.html. ;) -- Thiago H. de Paula Fi

Re: Tapestry ioc/registry startup exception?

2014-09-02 Thread Stephen Nutbrown
Hi, I had this exact same question and problem, and found changing the JDK to use 7 instead of 8 fixed it. However, this seems to do it even when I download a snapshot of Tapestry and run using JDK 8, is there any documentation anywhere with any requirements and instructions on how to use JDK 8?

Re: Tapestry ioc/registry startup exception?

2014-09-02 Thread Lance Java
It's caused by asm.ClassReader. Which jvm version and tapestry version are you using? Tapestry has only recently added support for java 8 (asm5).

Re: Tapestry ioc/registry startup exception?

2014-09-02 Thread John
This was caused by a JDK version conflict! - Original Message - From: John To: users@tapestry.apache.org Sent: Tuesday, September 02, 2014 11:08 AM Subject: Tapestry ioc/registry startup exception? Hi, Any pointers on why my app won't start pls? John ioc.Registry Er

Re: Tapestry IOC: Multiple bindings for same interface

2014-02-22 Thread Muhammad Gelbana
He still needs to manually contribute the interface-implementing services to this single service. Still, it sounds like the closes solution. *-* *Muhammad Gelbana* http://www.linkedin.com/in/mgelbana On Sat, Feb 22, 2014 at 11:18 AM, Lance Java wrote: > I think the "tapestry

Re: Tapestry IOC: Multiple bindings for same interface

2014-02-22 Thread Lance Java
I think the "tapestry way" of doing what you want is to make multiple contributions to a single service and inject the single service.

Re: Tapestry IOC: Multiple bindings for same interface

2014-02-21 Thread Thiago H de Paula Figueiredo
On Fri, 21 Feb 2014 12:58:26 -0300, Michael Gagauz wrote: Is it possible in T5 to inject multiple services which implemented same interface into array field? I.e: @Inject private SomeService[] services; No. -- Thiago H. de Paula Figueiredo Tapestry, Java and Hibernate consultant and deve

Re: Tapestry IOC / Autobuild / Advise Question

2014-02-12 Thread Thiago H de Paula Figueiredo
On Tue, 11 Feb 2014 18:16:01 -0200, Lance Java wrote: you must bind every actor and make sure it uses the correct scope You could do something like this: public void bind(ServiceBinder binder) { Class[] actorClasses = ...; for (Class actorClass : actorClasses) { bin

Re: Tapestry IOC / Autobuild / Advise Question

2014-02-11 Thread Lance Java
> you must bind every actor and make sure it uses the correct scope You could do something like this: public void bind(ServiceBinder binder) { Class[] actorClasses = ...; for (Class actorClass : actorClasses) { binder.bind(actorClass).scope("prototype"); } } If y

Re: Tapestry IOC / Autobuild / Advise Question

2014-02-11 Thread Thiago H de Paula Figueiredo
On Tue, 11 Feb 2014 15:03:21 -0200, Thilo Tanner wrote: Hi Thiago, Hi! unfortunately, it isn't that simple. I made a quick test and introduced a bean service lifecycle. Technically it works, but the solution isn't very elegant: you must bind every actor and make sure it uses the corr

Re: Tapestry IOC / Autobuild / Advise Question

2014-02-11 Thread Lance Java
Thiago, every time you call ObjectLocator.getService() you get a singleton. Every time you call ObjectLocator.autobuild() you get a new object.

RE: Tapestry IOC / Autobuild / Advise Question

2014-02-11 Thread Thilo Tanner
ks for the input! Thilo From: Thiago H de Paula Figueiredo Sent: Tuesday, February 11, 2014 17:30 To: Tapestry users Subject: Re: Tapestry IOC / Autobuild / Advise Question On Tue, 11 Feb 2014 13:51:13 -0200, Thilo Tanner wrote: > Hi Lance, h

Re: Tapestry IOC / Autobuild / Advise Question

2014-02-11 Thread Thiago H de Paula Figueiredo
On Tue, 11 Feb 2014 13:51:13 -0200, Thilo Tanner wrote: Hi Lance, hi Thiago, Hi! thanks a lot for your feedback. To be honest, I'm still a bit confused: Creating a bean or prototype scope seem to be controversial, according to older discussions: e.g. http://web.archiveorange.com/arch

Re: Tapestry IOC / Autobuild / Advise Question

2014-02-11 Thread Thiago H de Paula Figueiredo
On Tue, 11 Feb 2014 13:21:20 -0200, Lance Java wrote: Thiago, perhaps my wording was a little ambiguous. I consider perthread scoped services are still singletons. The proxy is a singleton (the underlying target may not be a singleton). I would never say that. The proxy itself may be a sing

RE: Tapestry IOC / Autobuild / Advise Question

2014-02-11 Thread Thilo Tanner
ossible to transform an object created by autobuild()? http://tapestry.apache.org/5.3/apidocs/org/apache/tapestry5/plastic/PlasticClass.html Thanks again and best, Thilo From: Lance Java Sent: Tuesday, February 11, 2014 16:21 To: Tapestry users Subject: Re: Ta

Re: Tapestry IOC / Autobuild / Advise Question

2014-02-11 Thread Lance Java
Thiago, perhaps my wording was a little ambiguous. I consider perthread scoped services are still singletons. The proxy is a singleton (the underlying target may not be a singleton). Using autobuild creates a new instance.

Re: Tapestry IOC / Autobuild / Advise Question

2014-02-11 Thread Lance Java
You might also want to consider implementing a custom scope (eg "prototype") by contributing a ServiceLifecycle to ServiceLifecycleSource. You could then mark your services with @Scope("prototype"). Take a look at PerThreadServiceLifecycle for inspiration.

Re: Tapestry IOC / Autobuild / Advise Question

2014-02-11 Thread Thiago H de Paula Figueiredo
On Tue, 11 Feb 2014 12:22:52 -0200, Lance Java wrote: Decoration is really for singleton services whereas you are using a scope which can be compared to spring's prototype scope. I'm sorry, Lance, but that's not correct. Decoration and advice does work with any service defined with an int

Re: Tapestry IOC / Autobuild / Advise Question

2014-02-11 Thread Lance Java
Decoration is really for singleton services whereas you are using a scope which can be compared to spring's prototype scope. I think you could transform the class (via PlasticManager / PlasticClassTransformer) prior to calling ObjectLocator.autobuild(transformedClass)

Re: Tapestry IoC: @Startup with ordering constraint

2013-05-31 Thread Eli Doran
I see what you mean Denis, thank you. On Fri, May 31, 2013 at 10:21 AM, Denis Stepanov wrote: > I have tried to push exactly same idea but wasn't successful. > > https://issues.apache.org/jira/browse/TAP5-1842 > > Denis > > May 31, 2013 v 4:16 PM, Eli Doran : > > > There's already a @ServiceId

Re: Tapestry IoC: @Startup with ordering constraint

2013-05-31 Thread Denis Stepanov
I have tried to push exactly same idea but wasn't successful. https://issues.apache.org/jira/browse/TAP5-1842 Denis May 31, 2013 v 4:16 PM, Eli Doran : > There's already a @ServiceId annotation to specify the ID. This isn't a > "service" exactly, it's close enough. > > > On Fri, May 31, 2013

Re: Tapestry IoC: @Startup with ordering constraint

2013-05-31 Thread Lance Java
If you derive the id from the method name, this might break backwards compatability. I'm guessing there are a lot of startup methods called startup()

Re: Tapestry IoC: @Startup with ordering constraint

2013-05-31 Thread Lance Java
Perhaps a new annotation is required @OrderedStartup(id="doEarly", constraints="before:*") public static void doStuff() { … } @OrderedStartup(id="doStuff") public static void doStuff() { … } @OrderedStartup(id="doMoreStuff", constraints="after:doStuff") public static void doMoreStuff() { … } On

Re: Tapestry IoC: @Startup with ordering constraint

2013-05-31 Thread Eli Doran
There's already a @ServiceId annotation to specify the ID. This isn't a "service" exactly, it's close enough. On Fri, May 31, 2013 at 10:12 AM, Lance Java wrote: > Perhaps a new annotation is required > > @OrderedStartup(id="doEarly", constraints="before:*") > public static void doStuff() { … }

Re: Tapestry IoC: @Startup with ordering constraint

2013-05-31 Thread Eli Doran
Yeah, like with builder methods which use the name after "build" as the Service ID. For example, to have the ID "SomeTask": > @Startup("before:SomeOtherOne") > public void startupSomeTask() { } On Fri, May 31, 2013 at 9:50 AM, Lance Java wrote: > I'm not sure this would work. OrderedConfigur

Re: Tapestry IoC: @Startup with ordering constraint

2013-05-31 Thread Lance Java
I'm not sure this would work. OrderedConfiguration requires that every entry has a unique id and @Startup does not require an id. I guess you could use ModuleClass.methodName for the default id but it's messy.

Re: Tapestry IoC: @Startup with ordering constraint

2013-05-31 Thread Thiago H. de Paula Figueiredo
You can always post a JIRA asking for that. On Thu, May 30, 2013 at 12:56 PM, Eli Doran wrote: > I am not using Tapestry web framework (which means I'd have everything in > my App's module, and its submodules, to keep it all together.) This means > the "other startup methods" are in other modul

Re: Tapestry IoC: @Startup with ordering constraint

2013-05-30 Thread Eli Doran
I am not using Tapestry web framework (which means I'd have everything in my App's module, and its submodules, to keep it all together.) This means the "other startup methods" are in other modules. I work with a lot of modules which run together in different combinations. They contribute to the st

Re: Tapestry IoC: Symbols and Defaults

2013-05-30 Thread Eli Doran
Thank you for sending feedback. I am aware of the nature of FactoryDefaults/ApplicationDefaults. It's a good system, easy to understand, and works. I have thought about this before posting as I use something similar already in my code. I don't have default value conflicts, however, I do occasionall

Re: Tapestry IoC: @Startup with ordering constraint

2013-05-28 Thread Michael Gentry
Hi Eli, This would be clever, but you can always have a single @Startup method that then calls all of your other startup methods in the order you want. In some ways, I think this is easier to read/understand. The startup order is clearly defined in a single spot instead of having to go decipher

Re: Tapestry IoC: @Startup with ordering constraint

2013-05-28 Thread Dusko Jovanovski
+1 On Mon, May 27, 2013 at 7:50 PM, Eli Doran wrote: > I like the simplicity of using the @Startup annotation compared to the > startup contribution method. > > However, it doesn't have the ability to order its execution as in the > contribution method. > > It seems it would be a simple thing t

Re: Tapestry IoC: Symbols and Defaults

2013-05-27 Thread Dmitry Gusev
I can see one problem here -- nothing prevents you from specifying more than one @DefaultValue and you may get a conflict too late, as far as I see you can't control this. Have you thought about it? On Tue, May 28, 2013 at 12:23 AM, Eli Doran wrote: > I've used @Symbols a lot. I appreciate its

Re: Tapestry IoC: Symbols and Defaults

2013-05-27 Thread Bob Harner
Having an optional default value on @Symbol seems useful to me. On Mon, May 27, 2013 at 4:42 PM, Thiago H de Paula Figueiredo < thiag...@gmail.com> wrote: > On Mon, 27 May 2013 17:23:36 -0300, Eli Doran wrote: > > I've used @Symbols a lot. I appreciate its flexibility and coercion >> ability. >

Re: Tapestry IoC: Symbols and Defaults

2013-05-27 Thread Thiago H de Paula Figueiredo
On Mon, 27 May 2013 17:23:36 -0300, Eli Doran wrote: I've used @Symbols a lot. I appreciate its flexibility and coercion ability. I started programming around it though and instead accessing SymbolSource and TypeCoercer directly because it is missing the ability to specify a default value, a

Re: Tapestry IOC - Should it have it's own name?

2012-09-12 Thread Howard Lewis Ship
On Wed, Sep 12, 2012 at 6:02 PM, Thiago H de Paula Figueiredo wrote: > On Wed, 12 Sep 2012 17:05:51 -0300, Muhammad Gelbana > wrote: > >>> >>> HiveMind just makes me think of StarCraft. ;-) >> >> >> Exactly eheheh :D > > > No one thought of the Borg hive mind in Star Trek? I very much did, when

Re: Tapestry IOC - Should it have it's own name?

2012-09-12 Thread Thiago H de Paula Figueiredo
On Wed, 12 Sep 2012 17:05:51 -0300, Muhammad Gelbana wrote: HiveMind just makes me think of StarCraft. ;-) Exactly eheheh :D No one thought of the Borg hive mind in Star Trek? -- Thiago H. de Paula Figueiredo - To unsu

Re: Tapestry IOC - Should it have it's own name?

2012-09-12 Thread Thiago H de Paula Figueiredo
On Wed, 12 Sep 2012 13:26:09 -0300, Howard Lewis Ship wrote: Maybe we could resurrect the HiveMind name? I always loved that name! I've just had a very bad idea: Unicorn IoC! It matches the Tapestry logo and searching for 'unicorn ioc' in Google has no relevant results . . . -- Thiago

Re: Tapestry IOC - Should it have it's own name?

2012-09-12 Thread Muhammad Gelbana
> > HiveMind just makes me think of StarCraft. ;-) Exactly eheheh :D On Wed, Sep 12, 2012 at 8:11 PM, Lenny Primak wrote: > HiveMind always had negative connotations in my mind as well. > I say de-emphasize Tapestry in Tapestry-IoC. > Just call it IoC. > > I hate Spring myself, and anything that

Re: Tapestry IOC - Should it have it's own name?

2012-09-12 Thread Lenny Primak
HiveMind always had negative connotations in my mind as well. I say de-emphasize Tapestry in Tapestry-IoC. Just call it IoC. I hate Spring myself, and anything that gets people off it is a good thing IMHO On Sep 12, 2012, at 1:52 PM, Daniel Jue wrote: > I'd say keep the same name but market the

Re: Tapestry IOC - Should it have it's own name?

2012-09-12 Thread Daniel Jue
I'd say keep the same name but market the IOC more heavily, with tutorials and demos (a quickstart, perhaps) of it being used in a non web app. (I don't think this is out there, right? If it is, it wasn't in-my-face enough. :-) ) A T5 IOC quickstart might work well with an Apache Shiro example,

Re: Tapestry IOC - Should it have it's own name?

2012-09-12 Thread Howard Lewis Ship
On Wed, Sep 12, 2012 at 2:59 AM, Lance Java wrote: > I've often had a conversation like this in the workplace: > > colleague: Let's start a new spring project > me: I hate spring, how about we use Tapestry IOC instead? > colleague: Tapestry, isn't that a web framework? > me: Well

Re: Tapestry IOC

2011-09-08 Thread Howard Lewis Ship
On startup, Tapestry stores the Registry into the ServletContext. If you can get to the servlet context, you can get the Registry. The key is org.apache.tapestry5.application-registry or use the constant TapestryFilter.REGISTRY_CONTEXT_NAME. On Thu, Sep 8, 2011 at 8:59 AM, Wechsung, Wulf wrote:

Re: Tapestry IOC

2011-09-08 Thread Thiago H. de Paula Figueiredo
On Thu, 08 Sep 2011 12:59:09 -0300, Wechsung, Wulf wrote: Hello Guys, Hi! I'm wondering, in a Tapestry Webapp scenario, how is it possible to obtain a reference to the IOC Registry for a (or all) currently loaded module(s). I know about RegistryBuilder but build() says to only call it

Re: Tapestry IoC: Service "Alias" depends on itself?

2011-06-08 Thread Erik Fäßler
Oh my - a simple @InjectService did the trick. Thank you, everything works great now. Side node: Since the old version did sometimes work I just hoped for your answer and continued working. In this process I added a logger to the contribution method: public static void contributeTestSymbolPro

Re: Tapestry IoC: Service "Alias" depends on itself?

2011-06-07 Thread Howard Lewis Ship
Well, the good news is that Alias is going away in 5.3 :-) Contributing to TypeCoercer and SymbolSource can, too easily, lead to these unintentional circular dependencies, as type coercion and symbols are often present in other contributions. public static void contributeTestSymbolProvider(Con

Re: Tapestry IoC: Bean Scope

2011-06-07 Thread Thiago H. de Paula Figueiredo
On Tue, 07 Jun 2011 14:47:10 -0300, Dmitriy Vsekhvalnov wrote: did i get you right, that i can simply inject ObjectLocator service to my Quartz JobFactory and instantiate jobs via autobuild() I mean sources saying all dependencies will be injected. Yes. JavaDoc: Autobuilds a class by findin

Re: Tapestry IoC: Bean Scope

2011-06-07 Thread Dmitriy Vsekhvalnov
did i get you right, that i can simply inject ObjectLocator service to my Quartz JobFactory and instantiate jobs via autobuild() I mean sources saying all dependencies will be injected. On Tue, Jun 7, 2011 at 8:20 PM, Howard Lewis Ship wrote: > Unfortunately, Tapestry is not Spring :-) The p

Re: Tapestry IoC: Bean Scope

2011-06-07 Thread Howard Lewis Ship
Unfortunately, Tapestry is not Spring :-) The proxy you get back from a direct or indrect call to getService() is always global, though in the case of the perthread scope, that core service implementation is ... another proxy that manages and delegates to the per-thread instance. I think you need

Re: Tapestry IoC: Bean Scope

2011-06-07 Thread Dmitriy Vsekhvalnov
i was hoping someone already did it :) Last time i was trying to do it with Hivemind, proxy created a new instance every method call, and this is not what i want. I mostly likely want no-proxy, but just new instance. On Tue, Jun 7, 2011 at 6:32 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.c

Re: Tapestry IoC: Bean Scope

2011-06-07 Thread Thiago H. de Paula Figueiredo
On Tue, 07 Jun 2011 10:47:23 -0300, Dmitriy Vsekhvalnov wrote: Hi all, Hi! is it possible to have services bound with Bean scope? I'm using Quartz scheduler and my jobs are actually services bound in AppModule with all dependency injection and so on. But i want different instance

Re: tapestry ioc

2011-01-07 Thread Joel Halbert
> I haven't used this library yet, so I don't know if it needs > SpringModule > or not. I guess it does, as Howard wrotes it and SpringModule is > there. > But that's just a guess. :) No, it doesn't use it, it just happened to be in my classpath. On Fri, 2011-01-07 at 09:08 -0200, Thiago H.

Re: tapestry ioc

2011-01-07 Thread Thiago H. de Paula Figueiredo
On Fri, 07 Jan 2011 07:46:39 -0200, Joel Halbert wrote: Actually - it all stemmed from me just wanting to exclude the SpringModule when using the tapx templating library for sending html emails! I haven't used this library yet, so I don't know if it needs SpringModule or not. I guess it d

Re: tapestry ioc

2011-01-07 Thread Joel Halbert
Actually - it all stemmed from me just wanting to exclude the SpringModule when using the tapx templating library for sending html emails! Since that's a standalone app that just uses tapx & tap-ioc (no web component) it just got me thinking about using Tap-IOC for my other standalone, non Tapest

Re: tapestry ioc

2011-01-06 Thread Josh Canfield
> Again, it doesn't seem right to have to consider what are effectively runtime > deployment configuration options when building an application into a jar. This is funny because I thought that is exactly what you are trying to do. If you are going to exclude modules from a deployment but don't wa

Re: tapestry ioc

2011-01-06 Thread Howard Lewis Ship
On Thu, Jan 6, 2011 at 8:45 AM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > On Thu, 06 Jan 2011 14:37:43 -0200, Joel Halbert > wrote: > > > > - if you have lots of modules, which a client may want to selectively >>> > > enable, do not declare them in the manifest, but instead le

Re: tapestry ioc

2011-01-06 Thread Howard Lewis Ship
It needs to be documented. Maybe I'll find time soon. I really need to finish the tutorial itself! It is very useful. I use it to separate my production configuration from my test configuration. On Thu, Jan 6, 2011 at 7:46 AM, Josh Canfield wrote: > If you provide a jar with 100 modules that

Re: tapestry ioc

2011-01-06 Thread Thiago H. de Paula Figueiredo
On Thu, 06 Jan 2011 14:37:43 -0200, Joel Halbert wrote: > > - if you have lots of modules, which a client may want to selectively > > enable, do not declare them in the manifest, but instead let the client > > use the tapestry.modules sys property to selectively enabl But that's sort of

Re: tapestry ioc

2011-01-06 Thread Joel Halbert
> > > - if you have lots of modules, which a client may want to selectively > > > enable, do not declare them in the manifest, but instead let the client > > > use the tapestry.modules sys property to selectively enabl But that's sort of my point - configuring IOC via a system property doesn't s

Re: tapestry ioc

2011-01-06 Thread Thiago H. de Paula Figueiredo
On Thu, 06 Jan 2011 14:09:02 -0200, Joel Halbert wrote: So if I understand correctly: - the only way to disable modules that are specified in the manifest is to remove the jar from the classpath Wrong. See http://tapestry.1045711.n5.nabble.com/T5-disable-loading-specified-module-td243111

Re: tapestry ioc

2011-01-06 Thread Joel Halbert
So if I understand correctly: - the only way to disable modules that are specified in the manifest is to remove the jar from the classpath - if you have lots of modules, which a client may want to selectively enable, do not declare them in the manifest, but instead let the client use the tapestry

Re: tapestry ioc

2011-01-06 Thread Josh Canfield
If you provide a jar with 100 modules that can be enabled/disabled then don't provide the manifest entry and resort to providing modules via tapestry.modules system property... > Searching the mailing list archives I've found this thread with a solution > for disabling the autoloading of given mod

Re: tapestry ioc

2011-01-06 Thread Thiago H. de Paula Figueiredo
On Thu, 06 Jan 2011 13:07:34 -0200, Joel Halbert wrote: why cant you take the jar from the classpath? This is what I have done, but it strikes me as quite a blunt instrument to use for configuring an application. Does it really mean you need a jar per service, if the user of the jar might w

Re: tapestry ioc

2011-01-06 Thread Joel Halbert
> why cant you take the jar from the classpath? This is what I have done, but it strikes me as quite a blunt instrument to use for configuring an application. Does it really mean you need a jar per service, if the user of the jar might want to selectively enable some of the services but not other

Re: tapestry ioc

2011-01-06 Thread Josh Canfield
That quote doesn't help because its in the manifest of the jar you want to exclude... why cant you take the jar from the classpath? On Jan 6, 2011 6:53 AM, "Josh Canfield" wrote: > From the link; "Module autoloading isn't 100% free ... you must tell > Tapestry IoC where the modules to load are loc

Re: tapestry ioc

2011-01-06 Thread Josh Canfield
>From the link; "Module autoloading isn't 100% free ... you must tell Tapestry IoC where the modules to load are located, which can be done via a Manifest file entry, or via an annotation." I don't believe being in the classpath is enough. I'm not sure there is a way to prevent a dependent module

Re: Tapestry IoC Idea: annotations for build and contribute methods

2009-08-17 Thread Jun Tsai
Good idea,I had the same problem. 2009/8/17 Sergey Didenko > Hi, > > What do you think about dedicated annotations that are alternative to > buildXXX() and contributeXXX() name convention? > > I changed service names a few times and forgot to update my build and > contribute methods. > > If I wo

Re: [Tapestry IOC] Interfaces could be more complete - MethodAdviceReceiver and Invocation

2009-08-06 Thread Thiago H. de Paula Figueiredo
Em Thu, 06 Aug 2009 04:32:04 -0300, Sebastian Hennebrueder escreveu: Hmm, in that case a getDelegate method could return null or the Proxy or ask the proxy for getDelegate. +1 to that. Annotation-driven decoration/advising is severely impaired without getting access to the service imple

Re: [Tapestry IOC] Interfaces could be more complete - MethodAdviceReceiver and Invocation

2009-08-06 Thread Sebastian Hennebrueder
Hmm, in that case a getDelegate method could return null or the Proxy or ask the proxy for getDelegate. Howard Lewis Ship schrieb: It might be possible to advise the interface. When advising, you may be layering advice upon a proxy to the service, in which case the service interface is the bes

Re: [Tapestry IOC] Interfaces could be more complete - MethodAdviceReceiver and Invocation

2009-08-05 Thread Howard Lewis Ship
It might be possible to advise the interface. When advising, you may be layering advice upon a proxy to the service, in which case the service interface is the best that is known. The latter case applies to advising a service that has a different scope than the default, singleton. On Wed, Aug 5,

Re: Tapestry-IoC: binding service without code, just convention over configuration

2008-12-27 Thread Howard Lewis Ship
> >> -Original Message- >> From: Howard Lewis Ship [mailto:hls...@gmail.com] >> Sent: Thursday, November 20, 2008 12:16 >> To: Tapestry users >> Subject: Re: Tapestry-IoC: binding service without code, just convention >> over configuration >> >&

RE: Tapestry-IoC: binding service without code, just convention over configuration

2008-11-20 Thread Jonathan Barker
7;t know how you manage to actually close them! Jonathan > -Original Message- > From: Howard Lewis Ship [mailto:[EMAIL PROTECTED] > Sent: Thursday, November 20, 2008 12:16 > To: Tapestry users > Subject: Re: Tapestry-IoC: binding service without code, just convention > o

RE: Tapestry-IoC: binding service without code, just convention over configuration

2008-11-20 Thread Jonathan Barker
> > That's one of the reasons I wrote the Ars Machina Generic DAO, Generic > DAO-Hibernate and Generic Controller: all the common methods (findAll, > findById, save, update, delete, findByExample, etc) are already written. I > don't have to rewrite them for every entity class. My generic dao is p

Re: Tapestry-IoC: binding service without code, just convention over configuration

2008-11-20 Thread Thiago H. de Paula Figueiredo
Em Thu, 20 Nov 2008 15:28:02 -0300, Thiago H. de Paula Figueiredo <[EMAIL PROTECTED]> escreveu: As far as I know, I cannot put the @CommitAfter method in one IoC service and have its calls wrapped in a transaction, just components and pages methods. If I'm wrong, I'll use Tapestry-Hibernate.

Re: Tapestry-IoC: binding service without code, just convention over configuration

2008-11-20 Thread Thiago H. de Paula Figueiredo
Em Thu, 20 Nov 2008 14:14:59 -0300, Howard Lewis Ship <[EMAIL PROTECTED]> escreveu: I think Tapestry makes it easier to separate your business logic out as IoC services or even Spring beans. It's easier to inject a service or bean in Tapestry than in any framework I'm aware of. I completely

Re: Tapestry-IoC: binding service without code, just convention over configuration

2008-11-20 Thread Thiago H. de Paula Figueiredo
Em Thu, 20 Nov 2008 14:16:33 -0300, Jonathan Barker <[EMAIL PROTECTED]> escreveu: Ah, I had to jump in. Everybody is invited! I like using business services that keep data access code out of my pages. That part feels good. So do I! :) Unfortunately, that often means that a findAll() i

Re: Tapestry-IoC: binding service without code, just convention over configuration

2008-11-20 Thread Howard Lewis Ship
w! In the meantime, > I'll settle for keeping Session out of my pages. > > Jonathan > > >> -Original Message- >> From: Chris Lewis [mailto:[EMAIL PROTECTED] >> Sent: Thursday, November 20, 2008 11:42 >> To: Tapestry users >> Subject: Re: Tapest

Re: Tapestry-IoC: binding service without code, just convention over configuration

2008-11-20 Thread Howard Lewis Ship
I think Tapestry makes it easier to separate your business logic out as IoC services or even Spring beans. It's easier to inject a service or bean in Tapestry than in any framework I'm aware of. My of the examples, demos or prototypes do intentionally blur the layers a bit, but you are anything b

RE: Tapestry-IoC: binding service without code, just convention over configuration

2008-11-20 Thread Jonathan Barker
settle for keeping Session out of my pages. Jonathan > -Original Message- > From: Chris Lewis [mailto:[EMAIL PROTECTED] > Sent: Thursday, November 20, 2008 11:42 > To: Tapestry users > Subject: Re: Tapestry-IoC: binding service without code, just convention > over config

Re: Tapestry-IoC: binding service without code, just convention over configuration

2008-11-20 Thread Thiago H. de Paula Figueiredo
One more example . . . Em Thu, 20 Nov 2008 14:59:05 -0300, Thiago H. de Paula Figueiredo <[EMAIL PROTECTED]> escreveu: This is a common confusion: there is the controller in the MVC pattern and the controller in the 3-tier architecture, and both are different things. A controller in MVC,

Re: Tapestry-IoC: binding service without code, just convention over configuration

2008-11-20 Thread Thiago H. de Paula Figueiredo
Em Thu, 20 Nov 2008 13:41:46 -0300, Chris Lewis <[EMAIL PROTECTED]> escreveu: Thanks for the input Thiago. All discussions are good discussions. :) I'm curious about your reasoning for avoiding tapestry-hibernate. I use it for it's value encoder and primary key encoder auto wiring, and tha

Re: Tapestry-IoC: binding service without code, just convention over configuration

2008-11-20 Thread Chris Lewis
Thanks for the input Thiago. I'm curious about your reasoning for avoiding tapestry-hibernate. I use it for it's value encoder and primary key encoder auto wiring, and that's pretty much it. I avoid injecting Session into pages, and I assume that's the practice you specifically are avoiding in the

Re: Tapestry-IoC: binding service without code, just convention over configuration

2008-11-19 Thread Lubor Gajda
> I'm thinking of not even have that binder.bind() call, automatically binding services located in packages defined by some convention. Very interesting idea. This mechanism could be something similar to Spring's classpath scanning for managed components: http://static.springframework.org/spring/

Re: Tapestry-IoC: binding service without code, just convention over configuration

2008-11-19 Thread Thiago H. de Paula Figueiredo
Em Wed, 19 Nov 2008 17:37:48 -0300, Chris Lewis <[EMAIL PROTECTED]> escreveu: Hi Thiago, Hi, Chris! Out of architectural curiosity, what do you use a UserController for in your example? I'm a strong supporter of n-tier architectures, so the view layer (in this case, Tapestry) does no b

Re: Tapestry-IoC: binding service without code, just convention over configuration

2008-11-19 Thread Chris Lewis
Hi Thiago, Out of architectural curiosity, what do you use a UserController for in your example? Thiago H. de Paula Figueiredo wrote: > Em Wed, 19 Nov 2008 15:31:16 -0300, Howard Lewis Ship > <[EMAIL PROTECTED]> escreveu: > >> Interesting idea. You could probably put something together around >>

Re: Tapestry-IoC: binding service without code, just convention over configuration

2008-11-19 Thread Thiago H. de Paula Figueiredo
Em Wed, 19 Nov 2008 15:31:16 -0300, Howard Lewis Ship <[EMAIL PROTECTED]> escreveu: Interesting idea. You could probably put something together around ClassNameLocator, i.e., a wrapper that given package names, find interfaces inside those packages that have matching Impl classes. i.e. publi

Re: Tapestry-IoC: binding service without code, just convention over configuration

2008-11-19 Thread Thiago H. de Paula Figueiredo
Em Wed, 19 Nov 2008 15:31:16 -0300, Howard Lewis Ship <[EMAIL PROTECTED]> escreveu: Interesting idea. You could probably put something together around ClassNameLocator, i.e., a wrapper that given package names, find interfaces inside those packages that have matching Impl classes. i.e. publi

Re: Tapestry-IoC: binding service without code, just convention over configuration

2008-11-19 Thread Howard Lewis Ship
Interesting idea. You could probably put something together around ClassNameLocator, i.e., a wrapper that given package names, find interfaces inside those packages that have matching Impl classes. i.e. public static void bind(ServiceBinder binder) { new AutoServiceBinder("my.package.root").bin

Re: Tapestry IoC error when Jetty is launched

2007-10-26 Thread Stephane Decleire
Sorry !!! Same problem as described there due to the javassist version : http://mail-archives.apache.org/mod_mbox/tapestry-users/200705.mbox/[EMAIL PROTECTED] Stephane Stephane Decleire a écrit : Here is what i get when i try to launch my Tap 5.0.6 application from Eclipse on Jetty 5.1.12 (by

Re: tapestry-ioc remarks and questions

2007-05-18 Thread Howard Lewis Ship
On 5/9/07, Ognen Ivanovski <[EMAIL PROTECTED]> wrote: Hi there! I'm very impatient to get my hands on tapestry 5, especially the IUC container. I really like the major points there. However, some remarks: 1. having the IOC container recognize the builder/contributor methods by method name is c