[jboss-as7-dev] Using Guava in a subsystem

Jozef Hartinger jharting at redhat.com
Mon Apr 22 17:24:58 EDT 2013


Hi all,

during a pull request[1] review James brought to my attention that a 
change I was about to make to the Weld subsystem would introduce a 
dependency on Guava. Since I consider Guava to be a useful library it 
surprised me to find out that it is not used anywhere in the JBoss AS / 
WildFly codebase. Is this intentional or did just nobody happen to use 
it in the codebase before?

Guava itself is used a lot in Weld core. Therefore, using Guava in a 
subsystem does not have any implications on the size of the JBoss AS / 
WildFly build as Guava needs to be bundled anyway. Still, if there are 
any guidelines or conventions on which libraries to use / avoid, please 
point me to them. Even better, if there is an alternative to Guava's 
LoadingCache I could use within JBoss AS / WildFly codebase please let 
me know.

Thanks,

Jozef

[1] https://github.com/jbossas/jboss-as/pull/4417


More information about the jboss-as7-dev mailing list