Guice 4.2 and AppEngine?

2018-03-28 Thread Christian Schmitt
Hello, currently I'm using Guice 4.1 on AppEngine with Kotlin, when trying to upgrade to Guice 4.2 I always get the following error: Caused by: java.lang.NoSuchMethodError: com.google.common.base.Preconditions. checkArgument(ZLjava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V at

Re: [guice] Support for LazyT like Dagger (#852)

2015-03-05 Thread 'Christian Gruber' via google-guice-dev
FTR, I'm re-initiating the jsr-330 spec revision, that included discussion of javax.inject.Lazy. If we can get broad consensus on that point, we can start down a road to a shared Lazy. On Thu, 22 Jan 2015 at 10:39 Tavian Barnes notificati...@github.com wrote: I started looking into the generic

Re: Introducing Blender, an annotation processor for Guice

2014-10-22 Thread 'Christian Gruber' via google-guice
that doesn't address performance constraints. It's been sitting for a bit, owing to prioritization, but I think that we should get it in shape and into Guice soon. (cc:ing colin about that) Christian. On Tue Oct 21 2014 at 2:18:15 PM Michael Burton m...@niskala.org wrote: We are aware of Dagger

Re: Introducing Blender, an annotation processor for Guice

2014-10-22 Thread 'Christian Gruber' via google-guice
of question out. c. On Wed Oct 22 2014 at 12:20:33 PM Stéphane NICOLAS steff.nico...@gmail.com wrote: I will let Mike answer your question Christian, as it is more oriented to his previous post. My personal point of view is that a lot of people already use RG, and for this reason itself, its

Re: @Provides, Providers (and singleton objects vs factories)...

2014-10-22 Thread 'Christian Gruber' via google-guice
type or the qualified return type. That conceptual mapping might make it easier. -christian. On Fri Oct 17 2014 at 9:32:15 AM Tim Peierls t...@peierls.net wrote: On Thu, Oct 16, 2014 at 7:19 PM, Kevin Burton burtona...@gmail.com wrote: I humbly propose that these concepts are rather confusing

Re: Is Guice 4 faster ?

2014-10-14 Thread 'Christian Gruber' via google-guice
Worth pointing out that in a cloud-universe where instances are killed and restarted, improving startup time is actually money on the table, since work performed by guice at startup costs CPU time which most cloud vendors charge for. Perhaps a trickle, but still a good thing to fix where Guice (or

Re: Passed: BanzaiMan/guice#1 (master - 2ebf5d5)

2014-07-15 Thread 'Christian Gruber' via google-guice-dev
Crap. We'll have to fix this, or everyone's fork's master build status will spam this account. On 15 July 2014 06:13, Travis CI notificati...@travis-ci.org wrote: *BanzaiMan / guice

Re: Passed: BanzaiMan/guice#1 (master - 2ebf5d5)

2014-07-15 Thread 'Christian Gruber' via google-guice-dev
is a Travis dev who was trying to reproduce the bad maven stuff. On Tue, Jul 15, 2014 at 11:33 AM, 'Christian Gruber' via google-guice-dev google-guice-dev@googlegroups.com wrote: Crap. We'll have to fix this, or everyone's fork's master build status will spam this account. On 15 July 2014 06:13

Re: Closing issues on code.google.com

2014-07-09 Thread 'Christian Gruber' via google-guice
I think people commenting is one thing. As long as they're not creating new issues, that's the key. We can direct traffic to the github issues and I think people commenting on code.google.com will just trail off. On 9 July 2014 07:03, Sam Berlin sber...@gmail.com wrote: Already hidden... but

Re: Subscribing google-guice-dev to github...

2014-07-08 Thread 'Christian Gruber' via google-guice-dev
Nah. Makes sense to me. Maybe throw the passwords for gnotifybot and this new thing into valentine or something. On 8 July 2014 06:08, Sam Berlin sber...@gmail.com wrote: I'm going to create a github account for google-guice-dev@ and have it follow the guice github page, so it gets emails

Re: idle thought: host code on github instead?

2014-07-06 Thread 'Christian Gruber' via google-guice
\, but \@ doesn't seem to work. On Sat, Jul 5, 2014 at 2:21 PM, 'Christian Gruber' via google-guice google-guice@googlegroups.com wrote: Back-ticks. `this is a code bit` C On Jul 5, 2014 5:19 AM, Sam Berlin sber...@gmail.com wrote: So in reviewing, there's a few things I want to fix up

Re: idle thought: host code on github instead?

2014-07-05 Thread 'Christian Gruber' via google-guice
it's not interpreted as an @mention? I tried a bunch of things, but only putting in code blocks worked... and that ruins the flow a bit, unless the entire comment is a code block (which induces horizontal scrolling). sam On Jul 4, 2014 11:45 PM, 'Christian Gruber' via google-guice google

Re: idle thought: host code on github instead?

2014-07-04 Thread 'Christian Gruber' via google-guice
Awesome. Thanks Sam. I think this will be a great situation once we've made the transition. Looking to migrate Guava at some point this quarter, in all likelihood. On 4 July 2014 07:28, Sam Berlin sber...@gmail.com wrote: FYI -- I've made some progress on this for issue migration. Starting

Re: idle thought: host code on github instead?

2014-05-28 Thread 'Christian Gruber' via google-guice
I'm happy enough with the github issues list - I've played enough with tags that I have found a nice balance on some other projects. c. On 28 May 2014, at 5:54, Sam Berlin wrote: Unless folks strongly prefer the codesite issue tracker, I'd rather just move everything over to github (if

Re: idle thought: host code on github instead?

2014-05-28 Thread 'Christian Gruber' via google-guice
-guice. For more options, visit https://groups.google.com/d/optout. Christian Gruber :: Google, Inc. :: Java Core Libraries :: Dependency Injection email: cgru...@google.com mobile: +1 (646) 807-9839 -- You received this message because you are subscribed to the Google Groups google

Re: idle thought: host code on github instead?

2014-05-28 Thread 'Christian Gruber' via google-guice
there would be good. (That said, it's a cool project, though blog.clahub.com 404s, yet is referred to in the main page) c. On 28 May 2014, at 15:36, Thomas Broyer wrote: https://www.clahub.com/ Christian Gruber :: Google, Inc. :: Java Core Libraries :: Dependency Injection email: cgru

Re: idle thought: host code on github instead?

2014-05-28 Thread 'Christian Gruber' via google-guice
it. On Wednesday, May 28, 2014 3:41:28 PM UTC-7, Christian Gruber wrote: Wait, Thomas... didn't we have this conversation about a year ago? :D I seem to recall you mentioning this. But I actually think hosting a CLA isn't what I'm looking for so much as being able to tie in your own

Re: My app is throwing java.lang.ArrayIndexOutOfBoundsException: 52264 exceptions within Google Guice

2014-05-27 Thread 'Christian Gruber' via google-guice
@googlegroups.com. Visit this group at http://groups.google.com/group/google-guice. For more options, visit https://groups.google.com/d/optout. Christian Gruber :: Google, Inc. :: Java Core Libraries :: Dependency Injection email: cgru...@google.com mobile: +1 (646) 807-9839 -- You received

Re: idle thought: host code on github instead?

2014-05-27 Thread 'Christian Gruber' via google-guice
@googlegroups.com. Visit this group at http://groups.google.com/group/google-guice. For more options, visit https://groups.google.com/d/optout. Christian Gruber :: Google, Inc. :: Java Core Libraries :: Dependency Injection email: cgru...@google.com mobile: +1 (646) 807-9839 -- You received

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

2014-05-23 Thread Christian Kütbach
(ServiceInterface.class).to(ServiceImpl.class); I forgot the @Inject annotation at the ServiceImpl(). During the debugsession I got a nice Stacktrace with all information I needed. Without remote debugging I got no information about the cause. Regards, Christian Kütbach -- You received this message

Re: Overriding @Provides methods considered harmful

2014-05-23 Thread 'Christian Gruber' via google-guice
certainly a viable option, though here also I would spout a warning on startup. Christian. On 23 May 2014, at 12:20, Luke Sandberg wrote: While preparing a recent changehttps://code.google.com/p/google-guice/source/detail?r=409e0f578b620c38f6c8626dee78783219d2956e to how @Provides methods

Re: Overriding @Provides methods considered harmful

2014-05-23 Thread 'Christian Gruber' via google-guice
breaking changes if I recall in Guice 4, so it might be timely (though folks on this list should pipe up as to whether that's going to rain doom upon them. :) Christian On 23 May 2014, at 18:06, Luke Sandberg wrote: On Friday, May 23, 2014 4:20:30 PM UTC-7, Christian Gruber wrote: +1. I would

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

2014-05-21 Thread Christian Kütbach
We have the same Problem (running inside IBM Notes). Are there any solutions found, yet? Regards, Christian Kütbach -- You received this message because you are subscribed to the Google Groups google-guice group. To unsubscribe from this group and stop receiving emails from it, send

Re: Release Policy

2014-05-19 Thread 'Christian Gruber' via google-guice
not a lot in the way of a 4.0 release - just available engineering time to fix up the last things we want to see in 4. We cut the betas precisely so that people can use it if they wish (we do, in production). Christian. On 19 May 2014, at 10:30, Cedric Reichenbach wrote: I just decided

Re: Java 8 Type Annotations and Guice

2014-04-08 Thread Christian Gruber
@googlegroups.com. Visit this group at http://groups.google.com/group/google-guice. For more options, visit https://groups.google.com/d/optout. Christian Gruber :: Google, Inc. :: Java Core Libraries :: Dependency Injection email: cgru...@google.com mobile: +1 (646) 807-9839 -- You received this message

Re: Java 8 Type Annotations and Guice

2014-04-08 Thread Christian Gruber
options, visit https://groups.google.com/d/optout. Christian Gruber :: Google, Inc. :: Java Core Libraries :: Dependency Injection email: cgru...@google.com mobile: +1 (646) 807-9839 -- You received this message because you are subscribed to the Google Groups google-guice group

Re: Java 8 Type Annotations and Guice

2014-04-08 Thread Christian Gruber
an email to google-guice+unsubscr...@googlegroups.com. To post to this group, send email to google-guice@googlegroups.com. Visit this group at http://groups.google.com/group/google-guice. For more options, visit https://groups.google.com/d/optout. Christian Gruber :: Google, Inc. :: Java Core

Re: Provider and @Inject Constructur

2014-04-06 Thread Christian Gruber
, do these need to live in spring configuration xml files? Christian. On 6 Apr 2014, at 10:40, Jochen Wiedmann wrote: All I am trying is to convert property name=foo value=10/ from Springs XML configuration. If you have a better idea, I'll be glad. Christian Gruber :: Google, Inc. :: Java

Re: Provider and @Inject Constructur

2014-04-05 Thread Christian Gruber
that implementation class, pick out its constructor with @Inject, and then analyze its dependencies. I think the provider wrapper is unnecessary. Christian. On 5 Apr 2014, at 10:36, Jochen Wiedmann wrote: Hi, one of my modules contains the following code: The Provuder works by calling

Re: Provider and @Inject Constructur

2014-04-05 Thread Christian Gruber
them different from any bound value of equal or wider scope? c. On 5 Apr 2014, at 11:47, Jochen Wiedmann wrote: On Saturday, April 5, 2014 8:33:58 PM UTC+2, Christian Gruber wrote: Guice will examine that implementation class, pick out its constructor with @Inject, and then analyze its

Re: New in git head: OptionalBinder

2014-04-02 Thread Christian Gruber
into a constructor? OptionalBinder lets you do that. Christian just pushed out some of our recent internal changes, including the introduction of OptionalBinder to the multibindings extension. Some example usage: 1) Setting a default binding that a user can override: Library

Re: New in git head: OptionalBinder

2014-04-02 Thread Christian Gruber
that users can change? 2) Inject something into a library or framework that isn't required, but would be better if a user could set it? 3) Inject an optional value into a constructor? OptionalBinder lets you do that. Christian just pushed out some of our recent internal changes, including

Re: Announcing Sangria

2014-04-02 Thread Christian Gruber
to google-guice+unsubscr...@googlegroups.com. To post to this group, send email to google-guice@googlegroups.com. Visit this group at http://groups.google.com/group/google-guice. For more options, visit https://groups.google.com/d/optout. Christian Gruber :: Google, Inc. :: Java Core Libraries

Re: Announcing Sangria

2014-04-02 Thread Christian Gruber
context. So it becomes an Admiral-Akbar-style trap, legally speaking, and companies are at-risk if they then use the code. Which is why the OSI rejected it as an open-source license. shrug Thanks for being open to alternatives, though. Mighty awesome of you. Christian. -- You received

Re: Order of interceptors of a method

2014-03-31 Thread Christian Gruber
://groups.google.com/group/google-guice. For more options, visit https://groups.google.com/d/optout. Christian Gruber :: Google, Inc. :: Java Core Libraries :: Dependency Injection email: cgru...@google.com mobile: +1 (646) 807-9839 -- You received this message because you are subscribed to the Google

Re: Order of interceptors of a method

2014-03-31 Thread Christian Gruber
On 31 Mar 2014, at 11:20, Tavian Barnes wrote: On Monday, 31 March 2014 13:03:57 UTC-4, Christian Gruber wrote: This actually looks a lot like a ListMultimapBinder to me. :) I don't see why, what type would the key have and where would they come from? Whatever comparable you wanted

PSA: Minor Git history surgery.

2014-03-31 Thread Christian Gruber
the .gitignore files. Apologies for any inconvenience. It is normally our policy not to re-write the git history, and the re-write has been reverted. c. Christian Gruber :: Google, Inc. :: Java Core Libraries :: Dependency Injection email: cgru...@google.com mobile: +1 (646) 807-9839

Re: Order of interceptors of a method

2014-03-31 Thread Christian Gruber
of those features that poor planning will clobber nastily. But it's also an expert feature in a way, so wise users will space out their priority key-space so there is room to insert. c Christian Gruber :: Google, Inc. :: Java Core Libraries :: Dependency Injection email: cgru...@google.com

PSA: Minor Git history surgery.

2014-03-31 Thread Christian Gruber
the .gitignore files. Apologies for any inconvenience. It is normally our policy not to re-write the git history, and the re-write has been reverted. c. Christian Gruber :: Google, Inc. :: Java Core Libraries :: Dependency Injection email: cgru...@google.com mobile: +1 (646) 807-9839

Re: CGLIB, ASM, Java8 Guice

2014-03-29 Thread Christian Gruber
Cool! Last time I did CVS - git/mercurial, I did CVS - SVN, then SVN - DVCS. -c. On 29 Mar 2014, at 8:37, Sam Berlin wrote: FYI, I've mirrored a version @ https://github.com/sameb/cglib, and sent an email to chrisn about what he wants to do with the sourceforge pages. Christian Gruber

Re: guice / java8

2014-03-19 Thread Christian Gruber
...@googlegroups.com. To post to this group, send email to google-guice@googlegroups.com. Visit this group at http://groups.google.com/group/google-guice. For more options, visit https://groups.google.com/d/optout. Christian Gruber :: Google, Inc. :: Java Core Libraries :: Dependency Injection email

Re: Injection of context in a @Provides method ?

2014-03-09 Thread Christian Gruber
at 6:38 AM, Christian Gruber cgru...@google.comwrote: I'm going to point out that Google doesn't ignore this thread - Google as a corporation does not offer any guarantees or warrantees or service-level-agreements with respect to Guice, which is clear in the Apache license attached to every file

Re: Injection of context in a @Provides method ?

2014-03-08 Thread Christian Gruber
. Other Google projects (and also companies like Square, etc.) are moving more and more of this sort of list discussion over to stack overflow. Please do not consider it a brush off, but a sincere recommendation of a more fruitful course of action. regards, Christian. On 8 Mar 2014, at 22:37

Re: Caching created instances?

2014-02-21 Thread Christian Gruber
receiving emails from it, send an email to google-guice+unsubscr...@googlegroups.com. To post to this group, send email to google-guice@googlegroups.com. Visit this group at http://groups.google.com/group/google-guice. For more options, visit https://groups.google.com/groups/opt_out. Christian

Re: How much time does google have to fixe larger issues for 4.0?

2014-02-18 Thread Christian Gruber
and figure out what we really do need/want in before rolling another version. I think it is severely unlikely we will have any API-risky changes forthcoming. Christian. On 18 Feb 2014, at 3:30, Tim Boudreau wrote: I've got a soon-to-ship non-trivial application running on Guice 4 beta. While

Re: Custom Scope with Guice 4.0 beta 2

2014-02-12 Thread Christian Gruber
-guice. For more options, visit https://groups.google.com/groups/opt_out. Christian Gruber :: Google, Inc. :: Java Core Libraries :: Dependency Injection email: cgru...@google.com mobile: +1 (646) 807-9839 -- You received this message because you are subscribed to the Google Groups google

Re: How much time does google have to fixe larger issues for 4.0?

2014-02-09 Thread Christian Gruber
the hollidays are over and everybody is back to work: any update on this? does somebody at google want to maintain the persist extension? On 12/19/2013 06:31 PM, Christian Gruber wrote: So that's not entirely true anymore. We have a few folks using it internally. I had originally been cool

Re: Controlling the sequence of binding calls using @Provides

2014-01-23 Thread Christian Gruber
may well not be what anyone wants. If you need order - dependency order is best. Can you not factor out a commonality to ensure that what needs to be created first is actually created first as a function of the dependency graph? Christian. On 23 Jan 2014, at 9:48, Alper Akture wrote: In my

Re: Binding to a provider instance

2014-01-15 Thread Christian Gruber
from it, send an email to google-guice+unsubscr...@googlegroups.com. To post to this group, send email to google-guice@googlegroups.com. Visit this group at http://groups.google.com/group/google-guice. For more options, visit https://groups.google.com/groups/opt_out. Christian Gruber :: Google

Re: @Provider and @inject difference

2014-01-15 Thread Christian Gruber
, but in your configuration code - your Modules. It's where you say, Hey, Guice, if someone needs this thing here in my return type, execute this method to create it. Christian. On 15 Jan 2014, at 14:58, guice_learner wrote: Whats the differnce between @Provider and @inject difference Can some

Re: Something slightly weaker than requireAtInjectOnConstructors

2013-12-27 Thread Christian Gruber
to no real benefit even if that benefit is merely executable documentation of intent and code-clarity. Just my 10,000 satoshis, Christian. On 27 Dec 2013, at 14:34, Sam Berlin wrote: I don't know if there's any way to do exactly what you'd like. requireAtInjectOnConstructors works the way it does

Re: How much time does google have to fixe larger issues for 4.0?

2013-12-19 Thread Christian Gruber
to this group, send email to google-guice@googlegroups.com. Visit this group at http://groups.google.com/group/google-guice. For more options, visit https://groups.google.com/groups/opt_out. Christian Gruber :: Google, Inc. :: Java Core Libraries :: Dependency Injection email: cgru...@google.com

Re: Open Question / Poll: Guava dependency and Java5 minimum requirement.

2013-12-13 Thread Christian Gruber
I'm in favor of guice-core as an externalized-deps version. Christian. On 13 Dec 2013, at 7:59, Stuart McCulloch wrote: On 11 Dec 2013, at 15:03, Sam Berlin sber...@gmail.com wrote: Interesting. That would certainly solve our lambdas in java8 problem right now -- folks can upgrade to ASM5

Re: Open Question / Poll: Guava dependency and Java5 minimum requirement.

2013-12-13 Thread Christian Gruber
external deps. On Dec 13, 2013 11:24 AM, Christian Gruber cgru...@google.com wrote: I'm in favor of guice-core as an externalized-deps version. Christian. On 13 Dec 2013, at 7:59, Stuart McCulloch wrote: On 11 Dec 2013, at 15:03, Sam Berlin sber...@gmail.com wrote: Interesting. That would

Re: Open Question / Poll: Guava dependency and Java5 minimum requirement.

2013-12-13 Thread Christian Gruber
. guice-nodep). Christian Gruber :: Google, Inc. :: Java Core Libraries :: Dependency Injection email: cgru...@google.com mobile: +1 (646) 807-9839 -- You received this message because you are subscribed to the Google Groups google-guice group. To unsubscribe from this group and stop

Re: Open Question / Poll: Guava dependency and Java5 minimum requirement.

2013-12-13 Thread Christian Gruber
options, visit https://groups.google.com/groups/opt_out. Christian Gruber :: Google, Inc. :: Java Core Libraries :: Dependency Injection email: cgru...@google.com mobile: +1 (646) 807-9839 -- You received this message because you are subscribed to the Google Groups google-guice group

Re: Using AOP only

2013-12-10 Thread Christian Gruber
, or AspectWerkz or other frameworks at this site: http://java-source.net/open-source/aspect-oriented-frameworks Christian. On 9 Dec 2013, at 11:53, Lorenzo Bugiani wrote: The problem is not Guice... The problem is use Guice without force my coworkers to use it, I don't know if I'm clear... I

Re: Open Question / Poll: Guava dependency and Java5 minimum requirement.

2013-12-09 Thread Christian Gruber
Java6. c. Christian Gruber :: Google, Inc. :: Java Core Libraries :: Dependency Injection email: cgru...@google.com mobile: +1 (646) 807-9839 -- You received this message because you are subscribed to the Google Groups google-guice group. To unsubscribe from this group and stop receiving

Re: CGLIB, ASM, Java8 Guice

2013-12-07 Thread Christian Gruber
to google-guice+unsubscr...@googlegroups.com. To post to this group, send email to google-guice@googlegroups.com. Visit this group at http://groups.google.com/group/google-guice. For more options, visit https://groups.google.com/groups/opt_out. Christian Gruber :: Google, Inc. :: Java Core

Re: CGLIB, ASM, Java8 Guice

2013-12-07 Thread Christian Gruber
it to Maven is probably best. sam On Dec 7, 2013 6:57 PM, Christian Gruber cgru...@google.com wrote: Isn't chrisn involved with glib? Can we rope him in to discuss how to get this pushed to sonatype? c. On 7 Dec 2013, at 11:04, Sam Berlin wrote: Ok, I: * Committed the fixes in cglib pushed

Re: Discussion: Some questions and concerns about Dependency Injection

2013-11-25 Thread Christian Gruber
. Because it is a trade-off between advantages, and those comparisons and valuations are subjective. Christian. Christian Gruber :: Google, Inc. :: Java Core Libraries :: Dependency Injection email: cgru...@google.com mobile: +1 (646) 807-9839 -- You received this message because you

Re: Discussion: Some questions and concerns about Dependency Injection

2013-11-25 Thread Christian Gruber
be burdensome. Then again, to me that situation is also a code smell… c. Christian Gruber :: Google, Inc. :: Java Core Libraries :: Dependency Injection email: cgru...@google.com mobile: +1 (646) 807-9839 -- You received this message because you are subscribed to the Google Groups google

Re: Discussion: Some questions and concerns about Dependency Injection

2013-11-24 Thread Christian Gruber
a similar intent - that is, this is an object managed by an external framework, so mucking about with the reference is going to give you a bad time. Christian. Christian Gruber :: Google, Inc. :: Java Core Libraries :: Dependency Injection email: cgru...@google.com mobile: +1 (646) 807-9839

Re: Discussion: Some questions and concerns about Dependency Injection

2013-11-24 Thread Christian Gruber
shouldn't need. That's a judgment about design choices you simply can't make in place for other teams and projects. cheers, Christian. Christian Gruber :: Google, Inc. :: Java Core Libraries :: Dependency Injection email: cgru...@google.com mobile: +1 (646) 807-9839 -- You received

Re: Failing Guice builds

2013-11-24 Thread Christian Gruber
://groups.google.com/group/google-guice. For more options, visit https://groups.google.com/groups/opt_out. Christian Gruber :: Google, Inc. :: Java Core Libraries :: Dependency Injection email: cgru...@google.com mobile: +1 (646) 807-9839 -- You received this message because you

Re: How to inject an object that takes parameters from the command line

2013-11-15 Thread Christian Gruber
an email to google-guice+unsubscr...@googlegroups.com. To post to this group, send email to google-guice@googlegroups.com. Visit this group at http://groups.google.com/group/google-guice. For more options, visit https://groups.google.com/groups/opt_out. Christian Gruber :: Google, Inc. :: Java Core

Re: How to inject an object that takes parameters from the command line

2013-11-15 Thread Christian Gruber
find that a little cumbersome, so I whipped up this. Either way. cheers, Christian. On 15 Nov 2013, at 21:17, Maatary Okouya wrote: Many thanks for your answer, appreciated. Although i might have forgot to mention that i'm new to guice and what you wrote does not make much sense in my body

Re: Discussion: Some questions and concerns about Dependency Injection

2013-11-11 Thread Christian Gruber
should have little or no knowledge of Guice or Guice's internals. I hope that clarifies the difference a little bit. cheers, Christian. On 11 Nov 2013, at 7:03, Alan Darkworld wrote: Hello everyone, I've been working with Java for several years now and I'm always open for new ideas

Re: Provider vs. guava Supplier and future JDK8 Supplier

2013-10-21 Thread Christian Gruber
an interface like Supplier and it will generate a factory method (with no parameters) on the generated factory for that Supplier's only method. I suspect this might meet your needs. Christian. On 21 Oct 2013, at 5:32, Romain Gilles wrote: Hi all, I would like to know how can I had the same type

Re: Provider vs. guava Supplier and future JDK8 Supplier

2013-10-21 Thread Christian Gruber
Greg meant http://github.com/google/auto It's available in source, but not released to maven. Christian. On 21 Oct 2013, at 9:25, Gregory Kick wrote: To clarify about @AutoFactory: 1) It is available now. It hasn't been released due to a buggy interaction with Dagger, but you can find

Re: Do you plan to migrate to guava 15?

2013-10-16 Thread Christian Gruber
Unless I'm completely missing something, Guice not only CAN compile against 15.0, but it IS compiling against 15.0, thanks to your (Stuart's) contribution. So the next pre-release should include this. Christian. On 16 Oct 2013, at 3:21, Stuart McCulloch wrote: Guice 4.0-beta embeds a subset

Re: Failing Guice builds

2013-09-30 Thread Christian Gruber
surface these. I'm frankly surprised this hasn't gone flakey in our internal testing environment - a lot of other projects that had tests based on method order failed pretty quickly after we switched to JDK7. :/ Thanks for catching this. Christian. On 30 Sep 2013, at 7:29, Sam Berlin wrote

Re: [google-guice] push by cgru...@google.com - Convert from MapMaker to CacheBuilder. Change mostly from Stewart McC... on 2013-09-20 18:39 GMT

2013-09-20 Thread Christian Gruber
Ah crap. No, it was not supposed to do that. I had conflicting change in both directions and MOE didn't handle it the way I expected, AND I didn't notice. Thanks for catching it. I'll fix it. :( c. On 20 Sep 2013, at 12:20, Stuart McCulloch wrote: Hi Christian, Was this change meant

Re: [google-guice] push by cgru...@google.com - Convert from MapMaker to CacheBuilder. Change mostly from Stewart McC... on 2013-09-20 18:39 GMT

2013-09-20 Thread Christian Gruber
: Hi Christian, Was this change meant to alter the maven project version back to 3.1.0-SNAPSHOT? (also seems to have reverted some recent pom.xml changes in master) I can't find these pom.xml changes in the patches I attached to http://code.google.com/p/google-guice/issues/detail?id=760 so

Re: Would it be a good practice to always inject the *provider* of a dependency?

2013-09-03 Thread Christian Gruber
should minimize the need for such hedges as injecting ProviderT. But if you need to, that's the place to do it. Christian. On 3 Sep 2013, at 17:22, electrot...@gmail.com wrote: I just realized that it may be wrong to always get two different instances of a dependency when calling two times its

Re: More changes pushed to open-source - please give them a whirl

2013-08-24 Thread Christian Gruber
On 23 Aug 2013, at 23:00, Mikhail Mazursky wrote: Switched to 4.0-beta and no problems so far (a rather big app with many modules and almost all Guice extensions used). Awesome! Are you planning to expose Guava as direct dependency? I hope to. christian. Christian Gruber :: Google

Re: More changes pushed to open-source - please give them a whirl

2013-08-23 Thread Christian Gruber
getting close. I think we can push 4.0 final before the end of the quarter. Anyone else who's testing, please pipe up on the things you feel need to be in. Christian. On 23 Aug 2013, at 12:52, electrot...@gmail.com wrote: Just to let you know that this 4.0-beta version seems to be working well

Re: Issue with AssistedInject and bindListener() in Guice 3.0

2013-08-21 Thread Christian Gruber
-guice. For more options, visit https://groups.google.com/groups/opt_out. Christian Gruber :: Google, Inc. :: Java Core Libraries :: Dependency Injection email: cgru...@google.com mobile: +1 (646) 807-9839 -- You received this message because you are subscribed to the Google Groups google

Re: Issue with AssistedInject and bindListener() in Guice 3.0

2013-08-21 Thread Christian Gruber
AM UTC-4, Christian Gruber wrote: As a side note, if you don't have a required inheritance hierarchy in your context, you can make an AbstractInitableWidget which has a default, overridable init() and implements IInitableAfterCreation, just to cut down on boilerplate. It would be good

Re: More changes pushed to open-source - please give them a whirl

2013-08-10 Thread Christian Gruber
2013, at 19:47, Christian Gruber wrote: Hey all, I just pushed more internal change out to the main open source git repo. Please build and test it if you're wanting to be on the bleeding edge - some changes include More info when encountering duplicates in a multibinder set. Minor little fixes

More changes pushed to open-source - please give them a whirl

2013-08-09 Thread Christian Gruber
(sorry) We have some more things to come, particularly around error handling and error trace information, but we had to roll it back temporarily until we figure out some subtleties. But we proceed forward towards a 4.0. cheers, Christian. Christian Gruber :: Google, Inc. :: Java Core

Re: Guice annotation processor?

2013-08-05 Thread Christian Gruber
to performance concerns). Thanks for the pointer to the JAVAC stuff in maven. I don't know that we want to do that, but the error-prone folks may well want to. c. On 5 Aug 2013, at 1:33, Tim Boudreau wrote: On Friday, August 2, 2013 6:46:19 PM UTC-4, Christian Gruber wrote: Awesome. The upside

Re: Guice annotation processor?

2013-08-02 Thread Christian Gruber
it can just be yet another compiler option, so it is trivial to use. All in all, it's a good time for java tooling and analysis. :) Christian. On 2 Aug 2013, at 12:52, Sam Berlin wrote: The more that can be done by default at compile time with Guice, the better! On Fri, Aug 2, 2013 at 3:45 PM

Re: Release 4.0 Beta

2013-08-01 Thread Christian Gruber
On 31 Jul 2013, at 19:12, Stuart McCulloch wrote: On 1 Aug 2013, at 02:55, Christian Gruber wrote: Note - I did something that I am unsure of, and we can fix it if need before 4.0-final. I bumped the internal API version, but I'm not sure which pieces of API are relevant to the OSGI

Release 4.0 Beta

2013-07-31 Thread Christian Gruber
. cheers, Christian. Christian Gruber :: Google, Inc. :: Java Core Libraries :: Dependency Injection email: cgru...@google.com mobile: +1 (646) 807-9839 -- You received this message because you are subscribed to the Google Groups google-guice group. To unsubscribe from this group and stop

Re: Release 4.0 Beta

2013-07-31 Thread Christian Gruber
for that bump. So this is an FYI, but also a call to review that decision. c. On 31 Jul 2013, at 18:24, Stuart McCulloch wrote: On 1 Aug 2013, at 02:19, Sam Berlin wrote: Great news! Agreed, thanks Christian! Will give it a test this weekend. On Jul 31, 2013 8:17 PM, Christian Gruber cgru

Error-prone and compile-time errors

2013-07-24 Thread Christian Gruber
in an eclipse environment. (Note, if you use M2E maven eclipse integration, you can use Maven-RunAs to execute the maven build from within eclipse, and error-prone will run if it's been integrated into maven.) regards, Christian. Christian Gruber :: Google, Inc. :: Java Core Libraries

Re: Disable JIT bindings

2013-07-24 Thread Christian Gruber
computer... On phone now. ) I'll take a look through, though, and see what other things are in there. sam On Jul 23, 2013 8:14 PM, Stuart McCulloch mccu...@gmail.com wrote: On 24 Jul 2013, at 01:08, Christian Gruber wrote: I'll target a release of 4.0-BETA (alpha?) for this weekend

Re: Guice issues owners and releases

2013-07-24 Thread Christian Gruber
-guice. For more options, visit https://groups.google.com/groups/opt_out. Christian Gruber :: Google, Inc. :: Java Core Libraries :: Dependency Injection email: cgru...@google.com mobile: +1 (646) 807-9839 -- You received this message because you are subscribed to the Google Groups google

Re: Disable JIT bindings

2013-07-23 Thread Christian Gruber
://groups.google.com/group/google-guice. For more options, visit https://groups.google.com/groups/opt_out. Christian Gruber :: Google, Inc. :: Java Core Libraries :: Dependency Injection email: cgru...@google.com mobile: +1 (646) 807-9839 -- You received this message because you are subscribed

Re: Disable JIT bindings

2013-07-23 Thread Christian Gruber
...@googlegroups.com. To post to this group, send email to google-guice@googlegroups.com. Visit this group at http://groups.google.com/group/google-guice. For more options, visit https://groups.google.com/groups/opt_out. Christian Gruber :: Google, Inc. :: Java Core Libraries :: Dependency Injection

Re: Disable JIT bindings

2013-07-23 Thread Christian Gruber
still prefer just the requireAtInject, but it's easy to relax the restriction in the future once that is released. --Eric On Tue, Jul 23, 2013 at 2:55 PM, Stuart McCulloch mccu...@gmail.comwrote: On 23 Jul 2013, at 22:48, Christian Gruber wrote: Wait… didn't we add

Re: Disable JIT bindings

2013-07-23 Thread Christian Gruber
in making beyond your SPI fix, Sam? I can't see anything crucial to fix with a breaking change, but now would be the time. Christian. On 23 Jul 2013, at 15:48, Eric Tschetter wrote: Don't rush a release just for me and this one feature :). If you really want to use this as an excuse to make one

Re: Disable JIT bindings

2013-07-23 Thread Christian Gruber
, 2013 at 7:35 PM, Christian Gruber cgru...@google.comwrote: Heh, Eric. Let's get it out there for you. :) I'll defer to Sam on the numbering. I think he has a better picture of the full scope of change in head, having written the vast bulk of it. :D That said, while we're doing a 4.0

Re: Disable JIT bindings

2013-07-23 Thread Christian Gruber
Jul 2013, at 17:13, Stuart McCulloch wrote: On 24 Jul 2013, at 01:08, Christian Gruber wrote: I'll target a release of 4.0-BETA (alpha?) for this weekend. Will this be what's in master at the moment? Because if so then I'd prefer just push it out as 3.1 right now before any breaking API

Re: Guice issues owners and releases

2013-07-16 Thread Christian Gruber
in J2EE (ejb stuffs). CDI is a semi-weighted replacement for much EJB noise, but is still much more of a modular component framework etc. As you said, guice seem[s] to be widely used, so no, I don't think so. cheers, Christian. Christian Gruber :: Google, Inc. :: Java Core Libraries

Re: Guice issues owners and releases

2013-07-16 Thread Christian Gruber
? Not really, no. - Is there still activity on guice and on its maintenance by owners? Yes, see the recent commits. - If not, why? because guice seem to be widely used? n/a - has CDI burried guice? No. Christian Gruber :: Google, Inc. :: Java Core Libraries :: Dependency

Re: void method injection

2013-06-25 Thread Christian Gruber
Aaargh. I misremembered which thing I read that was wrong. lol. thanks. Christian. On 25 Jun 2013, at 9:43, Sam Berlin wrote: I think you mean the javadoc *is** *correct? Because the jsr javadoc says, Injectable methods: ... may return a result ... . The only thing that seems

Re: Is it possible to get the currently binded elements of a Multibinder, while we're still in configure()?

2013-06-13 Thread Christian Gruber
. For more options, visit https://groups.google.com/groups/opt_out. Christian Gruber :: Google, Inc. :: Java Core Libraries :: Dependency Injection email: cgru...@google.com mobile: +1 (646) 807-9839 -- You received this message because you are subscribed to the Google Groups google-guice

Re: Is it possible to get the currently binded elements of a Multibinder, while we're still in configure()?

2013-06-13 Thread Christian Gruber
). You get a new multi binder if a multi binder doesn't already exist for that key. I any other case, you contribute bindings to the already-existing multi binder. Christian. On 13 Jun 2013, at 12:10, electrot...@gmail.com wrote: I have to admit I'm not 100% about what is the *scope

  1   2   3   >