File tree Expand file tree Collapse file tree
examples/RoboGuiceExample
src/com/googlecode/androidannotations/roboguiceexample Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66 <attribute name =" optional" value =" true" />
77 </attributes >
88 </classpathentry >
9- <classpathentry kind =" lib" path =" lib/guice-2.0-no_aop.jar" />
10- <classpathentry kind =" lib" path =" lib/roboguice-1.1.1.jar" />
119 <classpathentry kind =" src" path =" src" />
1210 <classpathentry kind =" src" path =" gen" />
1311 <classpathentry exported =" true" kind =" con" path =" com.android.ide.eclipse.adt.LIBRARIES" />
1412 <classpathentry exported =" true" kind =" con" path =" com.android.ide.eclipse.adt.DEPENDENCIES" />
15- <classpathentry kind =" lib" path =" /androidannotations-api/target/androidannotations-api-3.0-SNAPSHOT.jar" />
13+ <classpathentry exported =" true" kind =" lib" path =" /androidannotations-api/target/androidannotations-api-3.0-SNAPSHOT.jar" />
14+ <classpathentry exported =" true" kind =" lib" path =" lib/guice-2.0-no_aop.jar" />
15+ <classpathentry exported =" true" kind =" lib" path =" lib/roboguice-1.1.1.jar" />
1616 <classpathentry kind =" output" path =" bin/classes" />
1717</classpath >
Original file line number Diff line number Diff line change 2222 <category android : name =" android.intent.category.LAUNCHER" />
2323 </intent-filter >
2424 </activity >
25+ <activity android : name =" .SimpleActivity_" />
2526 </application >
2627
2728</manifest >
Original file line number Diff line number Diff line change 33import java .util .List ;
44
55import roboguice .application .RoboApplication ;
6- import roboguice .config .AbstractAndroidModule ;
76
87import com .google .inject .Module ;
98
@@ -14,11 +13,4 @@ protected void addApplicationModules(List<Module> modules) {
1413 modules .add (new AstroModule ());
1514 }
1615
17- static class AstroModule extends AbstractAndroidModule {
18- @ Override
19- protected void configure () {
20- bind (GreetingService .class ).to (GreetingServiceToastImpl .class );
21- }
22- }
23-
2416}
Original file line number Diff line number Diff line change 1+ package com .googlecode .androidannotations .roboguiceexample ;
2+
3+ import roboguice .config .AbstractAndroidModule ;
4+
5+ public class AstroModule extends AbstractAndroidModule {
6+ @ Override
7+ protected void configure () {
8+ bind (GreetingService .class ).to (GreetingServiceToastImpl .class );
9+ }
10+ }
You can’t perform that action at this time.
0 commit comments