maybe you can try to use Onami Lifecycle Dispose support [1] or Lifecycle
Management in Governator [2]
hth,
jordi
[1]
http://onami.apache.org/lifecycle/org.apache.onami.lifecycle.standard/dispose.html
[2] https://github.com/Netflix/governator/wiki/Lifecycle-Management
On Wed, Sep 4, 2013 at 7
;
}
hth,
jordi
[1] https://code.google.com/p/google-guice/wiki/Multibindings
[2]
http://google-guice.googlecode.com/svn/trunk/latest-javadoc/com/google/inject/multibindings/MapBinder.html
On Thu, Aug 29, 2013 at 9:27 AM, jpcoo...@gmail.com wrote:
Hi,
I've been reading quite a lot
On Sun, Jan 13, 2013 at 7:10 PM, Roger Kapsi rka...@gmail.com wrote:
The difficulty is that I can't simply slap a @RequestScoped annotation
onto them.
Why can't you just annotate the type (eg: Account)? If the instance is not
constructed by Guice, it will give enough information about the
annotatedWith(YourAnnon.class), // methods
new YourLoggingInterceptor());
I think the examples about AOP in the wiki [1] are pretty clear, but let me
know if I can help you further!
Cheers!
jordi
[1] http://code.google.com/p/google-guice/wiki/AOP
Thanks,
Dirk
--
You received
I think that you're looking for Assisted Inject:
http://code.google.com/p/google-guice/wiki/AssistedInject
On Thu, Jul 5, 2012 at 9:14 PM, cheez u.int.3...@gmail.com wrote:
I have a FTP client which has multiple servers configured by the user at
runtime:
class FTPConnection
{
you can apply a
consistent strategy to it all.
Christian
On May 11, 2012, at 7:05 AM, jordi wrote:
In case you really need to inject value classes, Guice does that for you
for free. If you @Inject a Person (non-scoped), every time will give a new
Person.
But I can't figure out why
a regular,
old-fashioned new.
If what you're looking for is to inject a Service in conjunction with some
value class, take a look at Assisted Inject [1]
hth,
jordi
[1] http://code.google.com/p/google-guice/wiki/AssistedInject
On Thu, May 10, 2012 at 10:45 PM, Bubba 42 bubba424...@gmail.com wrote
it?. I think it would be pretty much
clear.
cheers,
jordi
--
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 to
google-guice+unsubscr
use a regular guice Matcher [1], I guess this would do the trick:
import static com.google.inject.matcher.Matchers.annotatedWith;
// ...
protected void configure() {
convertToTypes(annotatedWith(Names.named(YOUR_KEY)), typeConverter);
}
jordi
[1]
http://google-guice.googlecode.com/svn/trunk
this helps,
jordi
[1] https://issues.apache.org/jira/browse/HADOOP-3261
[2]
http://esammer.blogspot.com/2009/09/map-reduce-and-dependency-injection.html
On Wed, Dec 28, 2011 at 6:13 PM, egolan egola...@gmail.com wrote:
Hi everyone,
Is there some documentation regarding integration of Guice
Spring).
So I was wondering how to integrate them both.
On Dec 30, 12:41 pm, jordi jo...@donky.org wrote:
Hey Eyal
There's an old jira with a patch [1] to support Spring Beans, that
replaces
the ReflectionUtils class used to instantiate everything with a much
proper
object factory
needs.
If we can join forces around 3rd party integrations I believe big things
will happen!
have a nice day,
jordi
On Thu, Nov 17, 2011 at 10:12 AM, Simone Tripodi
simonetrip...@apache.orgwrote:
Hi Daniel,
the main issue I see indeed is that efforts are defragmented - just
take a look
-guice.googlecode.com/svn/trunk/javadoc/com/google/inject/util/Modules.html#override(java.lang.Iterable?
extends com.google.inject.Module)
hth,
jordi
On Thu, Nov 17, 2011 at 1:16 PM, Moandji Ezana mwa...@gmail.com wrote:
Hi,
In introducing Guice to a project, I discovered that there's a built-in
binding
great job!
i'm looking forward to use it in my code, thanks for sharing that
jordi
On Wed, May 4, 2011 at 5:38 PM, Simone Tripodi simonetrip...@apache.orgwrote:
Hi all guys,
after Terracotta announced the new Quartz API release, I started
working on GitHub on a new implementation of Guice
I've opened (finally) an issue with a testcase for this:
http://code.google.com/p/google-guice/issues/detail?id=594
http://code.google.com/p/google-guice/issues/detail?id=594keep up your
amazing job with guice!
jordi
On Tue, Jan 18, 2011 at 6:41 PM, Sam Berlin sber...@gmail.com wrote:
Ya
Maybe @Provides will handle this for you?
@Provides @Singleton
public MaxBoundSet providesMaxBoundSet() {
// instantiate the way you need
return maxBoundSet;
}
http://code.google.com/p/google-guice/wiki/ProvidesMethods
hth,
jordi
On Sun, Dec 12, 2010 at 1:02 AM, Peter tableyourt
/packages.htmlI
guess that's a mistake since it's back...
thanks!
jordi
On Thu, Dec 9, 2010 at 2:16 PM, Sam Berlin sber...@gmail.com wrote:
So long as it's clear that it's an RC and not the full release, I don't see
how it could hurt having it in maven central. If you're able to do that,
Stuart
Where's Struts 2 Extension?
It's bundled in the .zip's but I can't find it in the Javadoc API pointed by
Guice30 wiki or in the source code via Google Code source browser
jordi
On Wed, Nov 24, 2010 at 9:22 PM, Simone Tripodi simone.trip...@gmail.comwrote:
sorry if I misunderstood, I thought
Hey there,
if there's any Spaniards in this list maybe you're interested in the tech
talk i made in GTUG Barcelona last weekend
Here's the link (keynote in spanish):
http://www.slideshare.net/giro9/dependency-injection-con-guice-gtug
thanks!
@jordi9
--
You received this message because you
you can inject Stage in your classes too:
@Inject
public Foo(Stage stage) {
this.stage = stage
}
On Tue, Sep 1, 2009 at 1:06 AM, Max Bowsher m...@f2s.com wrote:
Pablo Fernandez wrote:
Hi,
I'd like to know the stage (PRODUCTION, DEVELOPMENT) that my injector
is in.
I basically want
hey there!
i didn't try it but sure this helps you:
http://code.google.com/p/google-guice/wiki/Grapher
hope this helps
jordi
On 7/28/09, saltyazar ogu...@gmail.com wrote:
hi all,
first of all, thank you for the great contribution, keep up the good
work!
I am looking for a convenient
(struts.objectFactory, guice-test);
params.put(guice.module, com.eventuo.guice.StrutsTestCaseModule);
servletContext = new MockServletContext();
dispatcher = new Dispatcher(servletContext, params);
dispatcher.init();
hope this helps!
jordi
On Mon, Jun 29, 2009 at 4:28 PM, Greg Lindholm greg.lindh
Thanks for the pacth!
i was having this problem but i didn't have the time to debug it
On Fri, Jun 19, 2009 at 10:41 PM, Greg Lindholm greg.lindh...@gmail.comwrote:
Here is a patch which seems to work.
Index: struts2/plugin/src/com/google/inject/struts2/
GuiceObjectFactory.java
:
bind(MyObject.class).in(Scopes.SINGLETON);
hope this helps!
jordi
On Fri, Jun 19, 2009 at 6:28 AM, Matt mter...@gmail.com wrote:
I'm new to Guice, and I'm using injection within an interceptor, with
requestInjection() in my module.
The interceptor is being called just fine, so my module
not bogus... nice to know it before i replace new jars on my Struts2 apps ;P
On 5/20/09, Greg Lindholm greg.lindh...@gmail.com wrote:
Sorry, you can ignore the startup problem.
Eclipse WTP didn't clean out the old jars from the deployment area so
it had both the Guice 1.0 and 2.0 jars.
Once
download the struts2 plugin version 1.0.1.
http://google-guice.googlecode.com/files/guice-struts2-plugin-1.0.1.jar
it should fix your problem!
jordi
On 4/28/09, ampyx ampyx...@gmail.com wrote:
Hey guys,
I am new to Guice 1.0. I was trying to integrate guice 1.0 with
struts2.1.6. I got
TypeLiteralCacheNpc() {};
bind(inpc).to(npc);
and similar for the other binding
hope this helps!
jordi
On Tue, Apr 14, 2009 at 10:57 PM, aemami aemam...@gmail.com wrote:
Hi, I am trying to accomplish the following:
bind(ICacheNpc.class).to(CacheNpc.class);
and
bind(IMyMapperNpc.class
there's a lot more documentation on google code site:
http://code.google.com/p/google-guice/wiki/Changes20
btw, thanks jesse and all of you bringing in all this new documentation!
On Mon, Feb 9, 2009 at 11:32 AM, alexander.gruenew...@googlemail.com
alexander.gruenew...@googlemail.com wrote:
I'm having similar problems using Guice with Struts 2 + Hibernate.
I dunno if Guice is part of the problem, when the PermGen error appears
always is related to C3P0 pool created by Hibernate and the Logger stuff.
jordi
On Tue, Nov 25, 2008 at 7:41 PM, Dhanji R. Prasanna [EMAIL PROTECTED]wrote
, Dhanji R. Prasanna [EMAIL PROTECTED]wrote:
On Tue, Nov 25, 2008 at 11:22 AM, jordi [EMAIL PROTECTED] wrote:
...
Looking at the console log i see this message when redeploying:
A C3P0Registry mbean is already registered. This probably means that an
application using c3p0 was undeployed
i was about to tell you also about injecting ProviderDispatcherHandler
when i saw Bob's solution.. I guess if you inject that provider you can't
tell him about the Predictor, at least at construction time..
jordi
On Thu, Oct 16, 2008 at 6:24 PM, Andrew Clegg [EMAIL PROTECTED]wrote:
Okay
31 matches
Mail list logo