使用Guice需要做什么?

时间:2023-01-24 13:15:27

I want to learn Guice. I use eclipse. What to download? What to install? What to do in eclipse to use guice? Thanks.

我想学习Guice。我用eclipse。下载什么?安装什么?在eclipse中如何使用guice?谢谢。

3 个解决方案

#1


4  

You could start by following the installation guide for GuicePlugin (although that project doesn't seem very active sine April 2009):
peaberry is more up-to-date, and comes with a "Guide for using the peaberry bundle with OSGi".

您可以从遵循GuicePlugin的安装指南开始(尽管该项目在2009年4月似乎不太活跃):peaberry更新,并附带“使用peaberry捆绑OSGi的指南”。

If you don't need a special integration with Eclipse, all you need is the Guice2.0 release, referenced in the libraries of your project to get started.

如果您不需要与Eclipse进行特殊集成,那么您需要的只是Guice2.0版本,在项目库中引用即可开始使用。

alt text http://img682.imageshack.us/img682/2853/eclipseguice.png

alt text http://img682.imageshack.us/img682/2853/eclipseguice.png

#2


3  

Just download guice-2.0.zip from here and add guice-2.0.jar and aopalliance.jar to a project's classpath. Don't need anything special to use Guice.

只需从这里下载guice-2.0.zip并将guice-2.0.jar和aopalliance.jar添加到项目的类路径中。使用Guice不需要任何特殊的东西。

#3


1  

I think you could have a look to peaberry

我想你可以看看peaberry

http://code.google.com/p/peaberry/

#1


4  

You could start by following the installation guide for GuicePlugin (although that project doesn't seem very active sine April 2009):
peaberry is more up-to-date, and comes with a "Guide for using the peaberry bundle with OSGi".

您可以从遵循GuicePlugin的安装指南开始(尽管该项目在2009年4月似乎不太活跃):peaberry更新,并附带“使用peaberry捆绑OSGi的指南”。

If you don't need a special integration with Eclipse, all you need is the Guice2.0 release, referenced in the libraries of your project to get started.

如果您不需要与Eclipse进行特殊集成,那么您需要的只是Guice2.0版本,在项目库中引用即可开始使用。

alt text http://img682.imageshack.us/img682/2853/eclipseguice.png

alt text http://img682.imageshack.us/img682/2853/eclipseguice.png

#2


3  

Just download guice-2.0.zip from here and add guice-2.0.jar and aopalliance.jar to a project's classpath. Don't need anything special to use Guice.

只需从这里下载guice-2.0.zip并将guice-2.0.jar和aopalliance.jar添加到项目的类路径中。使用Guice不需要任何特殊的东西。

#3


1  

I think you could have a look to peaberry

我想你可以看看peaberry

http://code.google.com/p/peaberry/