Re: Tripping up on Bindings that are never used

2013-09-20 Thread Eric Tschetter
of the day the brokInj actually does have all the bindings it needs to do it's job (return the Names.named(Broker) Map). Hopefully that helps clarify what I'm dealing with. --Eric On Fri, Sep 20, 2013 at 9:29 AM, Mike Grove m...@clarkparsia.com wrote: fwiw, i used almost the exact same

Re: Tripping up on Bindings that are never used

2013-09-20 Thread Eric Tschetter
before, they shared a lot of the same modules). --Eric On Fri, Sep 20, 2013 at 11:26 AM, Nate Bauernfeind nate.bauernfe...@gmail.com wrote: My suggestion was to do this to your HistoricalExtension constructor: @Inject public HistoricalExtension( Injector

Tripping up on Bindings that are never used

2013-09-19 Thread Eric Tschetter
to do it. If this is the only option, I will switch to this model, just hoping there are other options as well. Does that all make sense? --Eric -- You received this message because you are subscribed to the Google Groups google-guice group. To unsubscribe from this group and stop receiving

Re: Tripping up on Bindings that are never used

2013-09-19 Thread Eric Tschetter
it and if that doesn't work (and there aren't other suggestions), I'll start adjusting everything to be under one big injector. --Eric On Thu, Sep 19, 2013 at 9:12 PM, Nate Bauernfeind nate.bauernfe...@gmail.com wrote: Also, I might recommend allowing your extensions to implement two separate

Disable JIT bindings

2013-07-23 Thread Eric Tschetter
it. Basically I want to disable any injection that is not either (a) bound in a module or (b) of an object with an @Inject binding. --Eric -- 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: Disable JIT bindings

2013-07-23 Thread Eric Tschetter
can deal with being even more explicit and requiring a bind for everything. On Tue, Jul 23, 2013 at 2:20 PM, Stuart McCulloch mccu...@gmail.com wrote: On 23 Jul 2013, at 22:13, Eric Tschetter wrote: Hello everyone. I'm looking for a way to disable JIT bindings in Guice. Google found http

Re: Disable JIT bindings

2013-07-23 Thread Eric Tschetter
thought it would. Would 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.com wrote: On 23 Jul 2013, at 22:48, Christian Gruber wrote: Wait… didn't we add

Re: Disable JIT bindings

2013-07-23 Thread Eric Tschetter
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 happen though, by all means, use it ;). --Eric On Tue, Jul 23, 2013 at 3:47 PM, Sam Berlin sber...@gmail.com wrote: I'd lean towards a 4.0-beta, and then we can roll

Re: NoSuchFieldError: servletContext

2013-02-08 Thread Eric
the dependencyConvergence/ rule; this will flag as an error any attempt to use two versions of any one dependency in your entire project. Eric -- 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

Re: creating a community of 3rd parties integrations

2012-02-07 Thread Eric Charles
Thx for the link Kazimierz, seems very interesting. Tadedon project is thus one more argument to build that 3rd party community Simone proposed :) (I am not only looking for @PostConstruct, but for a coherent and maintained set of added-value functionalities on top of Guice). Eric On Feb 7, 11

Re: creating a community of 3rd parties integrations

2012-02-06 Thread Eric Charles
release/snapshots for all the guice 3d-party extensions/integrations... Should this happen on this mailing list or in another forum such Apache Incubator,...as previously talked on this thread? I can contribute some time on this..., anybody interested? Thx, Eric On 18/11/11 20:40, Simone Tripodi

git src clone not working

2011-12-30 Thread Eric Charles
googlecode account and got the ame error (google-guice/info/refs not found). More debug with GIT_CURL_VERBOSE=1 shows a 404. Thx for your help, Eric GIT_CURL_VERBOSE=1 git clone https://code.google.com/p/google-guice Initialized empty Git repository in /Users/echarles/dev/google-guice/.git

git src clone not working (404)

2011-12-30 Thread Eric Charles
login eric.umg.charles password x I tried via a cloned server repo on my googlecode account and got the ame error (google-guice/info/refs not found). More debug with GIT_CURL_VERBOSE=1 shows a 404 (username and password seem to be sent correctly). Thx for your help, Eric GIT_CURL_VERBOSE=1

Re: git src clone not working

2011-12-30 Thread Eric Charles
...@code.google.com/p/google-guice//info/refs not found: did you run git update-server-info on the server? Is it working on your side? This is my first time with git on googlecode (my git client is operational with github). Thx, Eric On 30/12/11 16:51, Stuart McCulloch wrote: On 30 December 2011 15

Re: git src clone not working

2011-12-30 Thread Eric Charles
Hi Stuart, I 'viewed' this jira but didn't read it completely... After my git client upgrade, it's working fine :) Thx again, Eric On 30/12/11 17:19, Stuart McCulloch wrote: On 30 Dec 2011, at 16:02, Eric Charles wrote: Hi Stuart, That's what I did, Retrying: git clone https

Re: Allowing scope annotations on abstract types?

2011-01-27 Thread Eric
JavaScript instance for both. There's no reason for anything else. Respectfully, Eric Jablow -- You received this message because you are subscribed to the Google Groups google-guice group. To post to this group, send email to google-guice@googlegroups.com. To unsubscribe from this group, send email

Re: Serve static files with guice servlet

2010-11-19 Thread Eric
of the item it modifies too. You have arranged for MyServlet to match everything. Eric -- You received this message because you are subscribed to the Google Groups google-guice group. To post to this group, send email to google-gu...@googlegroups.com. To unsubscribe from this group, send email to google

Using Guice to configure Axis2 services in aar format

2010-10-14 Thread Eric
class loader issues either. In short, I'm confused. Respectfully, Eric Jablow -- You received this message because you are subscribed to the Google Groups google-guice group. To post to this group, send email to google-gu...@googlegroups.com. To unsubscribe from this group, send email to google

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

2010-06-10 Thread Eric Burke
email to google-guice-dev+unsubscr...@googlegroups.comgoogle-guice-dev%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-guice-dev?hl=en. -- Eric M. Burke http://www.linkedin.com/in/ericburke 314-494-3185 (mobile) 636-294-0191 (home

Re: Stale / Will Not Fix Issues

2010-04-26 Thread Eric Burke
...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-guice-dev?hl=en. -- Eric M. Burke http://www.linkedin.com/in/ericburke 314-494-3185 (mobile) 636-294-0191 (home) -- You received this message because you are subscribed to the Google Groups

Re: a piece of documentation

2010-01-27 Thread eric
there might be a solution using Scope but I can't figure out how ! Scope are a bit complicated for me right now. Based on the name, I Imagined Scope could have worked as namespace but I do understand scope (yet ?) On 27 jan, 15:15, Peter tableyourt...@googlemail.com wrote: Hi Eric! 4/ use

Extending injection

2010-01-25 Thread eric
Hi, I've got a problem that I can't solve by myself with guice, a little help would be nice, thanks. I've got a routine, that injects some stuff from a resource into a given instance. Until now, the stuff that was injected was instanciated using newInstance. That was nice, but now I'm getting a

Re: Extending injection

2010-01-25 Thread eric
() instead, but I can't get my hands on a decent injector while in the TypeListener (or anywhere else). maybe with spi ? On Jan 25, 1:58 pm, Fred Faber ffa...@faiser.com wrote: inject Injector, not MyOwnInjector. On Jan 25, 2010 7:46 AM, eric eric...@gmail.com wrote: Hi, I've got a problem

Re: Extending injection

2010-01-25 Thread eric
... ) If neither of these solutions work, could you please work backwards and elaborate on the lifecycle of the target instances onto which you need to inject dependencies? On Mon, Jan 25, 2010 at 9:13 AM, eric eric...@gmail.com wrote: Thank you for the answer, but it seems to me that your solution

RequestDispatcher bug details

2009-12-23 Thread Eric M. Burke
I posted some comments on Issue 372 yesterday (http://code.google.com/ p/google-guice/issues/detail?id=372) but now I'm not sure if that's the right bug. Here is the problem: 1. Put a static HTML file or JSP somewhere in your web app. For example, WEB-INF/protected_page.html. 2. Write a simple

Why my @Singleton doesn't work?

2009-10-26 Thread eric
Hi, I met a problem when trying @Singleton of Guice: import com.google.inject.Singleton; @Singleton public class ConfigManager { private String data; public void setData(String data) { this.data = data; } public String getData(){ return this.data; }

Re: Why my @Singleton doesn't work?

2009-10-26 Thread eric
Understand, thank you On Oct 26, 5:03 pm, Stuart McCulloch mccu...@gmail.com wrote: 2009/10/26 eric eric2323...@gmail.com Hi, I met a problem when trying @Singleton of Guice: import com.google.inject.Singleton; @Singleton public class ConfigManager {    private String data

How to apply patch?

2009-10-26 Thread eric
I've met the java.lang.NoClassDefFoundError: com/google/inject/ internal/cglib/reflect/FastClass problem which has been disscussed in http://code.google.com/p/google-guice/issues/detail?id=343. Could anyone please tell me how to apply the patch? or is there any daily build that I can use

Re: How to apply patch?

2009-10-26 Thread eric
Thanks so much, Stuart. On Oct 27, 11:53 am, Stuart McCulloch mccu...@gmail.com wrote: 2009/10/27 eric eric2323...@gmail.com I've met the java.lang.NoClassDefFoundError: com/google/inject/ internal/cglib/reflect/FastClass problem which has been disscussed in http://code.google.com/p

Re: Bind Assisted injected class to interface

2009-10-22 Thread eric
, Is there anyway to resolve this other than refactoring the existing code? On Oct 22, 12:09 am, je...@swank.ca limpbiz...@gmail.com wrote: On Oct 21, 2:46 am, eric eric2323...@gmail.com wrote: It seems the bind().toConstructor() is not documented, could you please tell me more about it? See also

Re: Bind Assisted injected class to interface

2009-10-21 Thread eric
Very helpful, thank you guys. On Oct 22, 3:27 am, Alen Vrečko alen_vre...@yahoo.com wrote: What you are doing might be similar to thishttp://groups.google.com/group/google-guice/browse_thread/thread/efcd Maybe this code will give you some ideashttp://pastie.org/453944. Cheers Alen

Bind Assisted injected class to interface

2009-10-20 Thread eric
I have a SimpleCommand that has a String type Assisted injected: Class SimpleCommand implements Executable{ private final ConfigManager config; private String name; @Inject public SimpleCommand(ConfigManager config, @Assisted String name){ this.config = config; this.name = name; } } And

Re: Bind Assisted injected class to interface

2009-10-20 Thread eric
the Executable passed in. Do you have any idea? On Oct 21, 7:16 am, Jean-Francois Poilpret jfpoilp...@yahoo.fr wrote: eric wrote: I have a SimpleCommand that has a String type Assisted injected: Class SimpleCommand implements Executable{ private final ConfigManager config; private

Re: Binding question

2009-10-16 Thread eric
McCulloch mccu...@gmail.com wrote: 2009/10/14 eric eric2323...@gmail.com I have a super basic problem: public class StringBinding {        private String name;       �...@inject        public StringBinding(String name){                this.name = name;        }        public void

Re: General advice on Providers vs Factories vs Builders

2009-01-31 Thread Eric Anderson
/when-collections-are-configuration.html Eric On Sat, Jan 31, 2009 at 1:03 PM, Matt G matthew.gret...@gmail.com wrote: Hi, Let me start by stating that I am very new to dependency injection and Guice (1 week ish), so it is entirely possible that some, if not all of the following questions

Re: General advice on Providers vs Factories vs Builders

2009-01-31 Thread Eric Anderson
if you have a concrete for doing so. Yes. Eric Eric Anderson wrote: Matt, Unless something outside of your MapHelper needs a reference to the same instance of the map, I would not pass the empty collection into the constructor. I would have the MapHelper create the map (via normal

Re: Robot leg problems... I don't understand it :(

2009-01-22 Thread Eric Anderson
Better, http://pastebin.com/ Supports Groovy syntax highlighting. Eric 2009/1/22 Alen Vrečko alen_vre...@yahoo.com Great! Didn't know about pastie or pastehere. Thanks. The code once more http://pastie.org/368348 Cheers, Alen On Jan 23, 1:56 am, Rick ric...@gmail.com wrote: Can you

Re: Probably simple question - I want to build a jar and within it have Guice handle DI - but question about external users

2009-01-13 Thread Eric Anderson
(clz); } } The clients can decide how they want to consume something like this. I'm assuming that you're talking about existing applications that are NOT currently using IoC. Eric On Tue, Jan 13, 2009 at 2:40 PM, rickcr ric...@gmail.com wrote: I'm wondering if maybe I should just force my

Re: Injecting generic objects

2009-01-12 Thread Eric Anderson
Leigh, Looks like the makings of a good blog post... Eric On Fri, Jan 9, 2009 at 6:30 PM, Leigh Klotz leigh.kl...@gmail.com wrote: Here's a use case, done without using injectors directly, so it's a little more of a worked-up example: Consider the interface Foo: public interface FooT

Re: I don't get Guice

2008-09-11 Thread Eric Anderson
of a single class, and tweaking the unit tests for that class. No other classes care that I've changed that constructor. Zero other production classes change. IoC containers allow a much more decoupled system so that change is very isolated. Eric