Best practice to inject and clean up resources per request

2010-08-20 Thread Johannes
Hi, i need a kick start how do this the guice way. I have an api to an legacy system which has support for transactions. Now I want to write transactional servlets where fresh transactions automaticly get injected for each request and automaticly removed when the request is done. My idea is to

Re: Best practice to inject and clean up resources per request

2010-08-20 Thread Johannes
of this functionality for you.http://www.wideplay.com/guicewebextensions2 http://www.wideplay.com/guicewebextensions2Dhanji. On Thu, Aug 19, 2010 at 9:21 PM, Johannes johannes.ba...@googlemail.comwrote: Hi, i need a kick start how do this the guice way. I have an api to an legacy

Re: transaction-per-request using guice persist

2012-09-20 Thread Johannes
this method a transaction will be started (if non is already running). On 09/19/2012 06:16 PM, Johannes wrote: Hi, I have followed the advise on http://code.google.com/p/google-guice/wiki/JPA and it seems to work when I set @Transactional directly on my DAO. However, I have trouble

Re: Guice 2 prerelease snapshot 20090205

2009-02-09 Thread Johannes Schneider
I have downloaded the file. Thanks for your work. Just one question: What about an extra jar for the annotations? http://code.google.com/p/google-guice/issues/detail?id=106 Thanks, Johannes On Sun, 2009-02-08 at 12:37 -0800, je...@swank.ca wrote: I've tagged a new snapshot and uploaded new

Re: maven [was: Guice 2.0]

2009-06-04 Thread Johannes Schneider
still waiting... any news? On 05/29/2009 09:47 AM, Jelle Herold wrote: On May 29, 2009, at 08:05, Adam Ruggles wrote: I've been using this repository patiently awaiting the official guice maven release. http://guice-maven.googlecode.com/svn/trunk Also waiting for an official maven

Wildcards...

2009-06-06 Thread Johannes Schneider
Hi, I think someone at Google really understands Generics ;-). At the moment I try to understand how Guice manges those things. Therefore I have created a small sample that works. But I would like to have any feedback how that should/could be solved better: Regards, Johannes public class

Re: Wildcards...

2009-06-06 Thread Johannes Schneider
B? bs ) { this.bs = bs; } } public static class BT { } public static class BProvider implements ProviderList? extends B? { @Override public List? extends B? get() { return Arrays.B?asList( new B(), new B() ); } } } Johannes Schneider wrote: Improved

Re: Wildcards...

2009-06-13 Thread Johannes Schneider
, Johannes je...@swank.ca wrote: On Jun 6, 8:48 am, Johannes Schneider maili...@cedarsoft.com wrote: bind( ( TypeLiteralList? extends B ) TypeLiteral.get( Types.listOf( Types.subtypeOf( new TypeLiteralB?() { }.getType() ) ) ) ).toProvider( BProvider.class ); Not much I can

Multibinding + Collection types

2009-10-15 Thread Johannes Schneider
? extends ImageSelectionStrategy. Could that not-so-readable part with the type literals be skipped somehow? I think that is quite a common use case and maybe should be added to the multibinder? Sincerly, Johannes --~--~-~--~~~---~--~~ You received this message because

Re: Multibinding + Collection types

2009-10-15 Thread Johannes Schneider
) ) ); compiles... Thanks Johannes Schneider wrote: Thanks for pointing at that class. Have missed it completely. But now I have a generics related problem with the compiler. I can fix it using casts but I'd like to understand my error: Could anyone give me a hint why this code does

Nice javadoc

2010-08-27 Thread Johannes Schneider
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi guys, I have seen that the javadocs have improved much. I really like it. Any information about how to achieve that? Might be interesting for some other projects too... Thanks, Johannes - -- Johannes Schneider - blog.cedarsoft.com -BEGIN

Re: Generics and binded interface inside another binded interface

2010-09-24 Thread Johannes Schneider
?hl=en. - -- Johannes Schneider - blog.cedarsoft.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/Linux) iQEcBAEBAgAGBQJMnGREAAoJEAytD9R7Qv6dOksIAMinVSjEBjU2omN7AFci9qnW pxSdZTDOVT8N0vPbCk7ZYb//h5SjkyGqCP5OJhw6UHEW7Ob04bcw7bJppJpaWN6X zRfatns0r7wUzGMBnF

[OSGi] NoClassDefFoundError: com/google/inject/internal/util/$StackTraceElements

2011-02-15 Thread Johannes Schneider
, Johannes java.lang.NoClassDefFoundError: com/google/inject/internal/util/$StackTraceElements at com.google.inject.internal.Errors.formatInjectionPoint(Errors.java:697) at com.google.inject.internal.Errors.formatSource(Errors.java:659

Memory Issues with hierarchical Injectors and Multibindings

2013-09-22 Thread Johannes Wachter
Is there any way to avoid this? Currently the only solution I would see for it is extracting the multibindings to the top level and do possible user specific filtering manually. Regards, Johannes -- You received this message because you are subscribed to the Google Groups google-guice group

Re: Memory Issues with hierarchical Injectors and Multibindings

2013-09-25 Thread Johannes Wachter
the toString of the RealElement in guice-multibindings. For our use cases this seems to solve the memory problems, but I'm not yet sure what possible side effects this has since I didn't yet do further testing. Regards, Johannes Am Sonntag, 22. September 2013 20:52:05 UTC+2 schrieb Laszlo

Re: Using MultiBinder programmaticlly.

2013-09-25 Thread Johannes Wachter
() method really needs to be a List instead of a Set, you need to wrap/copy the retrieved Set, e.g. through Guavas ImmutableList.copyOf(lifecycleAwares) or something similar. Regards, Johannes On Wed, Sep 25, 2013 at 1:24 PM, Jochen Wiedmann jochen.wiedm...@gmail.comwrote: Hi, I have read

Re: Ping? Could a Guice maintainer comment? (Re: Move internal utility code to separate package?)

2010-06-10 Thread Johannes Schneider
Fortunately it is possible to exclude packages from being imported in IntelliiJ Idea. Johannes This doesn't rule out the change completely, but it does make it significantly less compelling. - -- Johannes Schneider - blog.cedarsoft.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU

Re: Ping? Could a Guice maintainer comment? (Re: Move internal utility code to separate package?)

2010-06-11 Thread Johannes Schneider
code) isn't solved through obfuscation/renamings/whatever... Johannes Dhanji. On Thu, Jun 10, 2010 at 11:37 AM, Johannes Schneider maili...@cedarsoft.com mailto:maili...@cedarsoft.com wrote: On 06/10/2010 08:20 PM, Eric Burke wrote: -1 to new external dependencies. I'd rather Guice

Re: Guice RC2 Available

2011-01-22 Thread Johannes Schneider
to google-guice-dev@googlegroups.com. To unsubscribe from this group, send email to google-guice-dev+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-guice-dev?hl=en. - -- Johannes Schneider - blog.cedarsoft.com -BEGIN PGP SIGNATURE