Author: limpbizkit
Date: Thu Feb 19 15:08:18 2009
New Revision: 853

Added:
    wiki/OptionalAOP.wiki

Log:
Created wiki page through web user interface.

Added: wiki/OptionalAOP.wiki
==============================================================================
--- (empty file)
+++ wiki/OptionalAOP.wiki       Thu Feb 19 15:08:18 2009
@@ -0,0 +1,31 @@
+#summary Building Guice without AOP support
+= Optional AOP =
+Guice 1.0 was available in a single version that included AOP.
+
+Guice 2.0 makes AOP is optional. If your platform doesn't support bytecode  
generation, you can download a version of Guice that doesn't include AOP  
support. This is most useful for mobile platforms like  
[http://code.google.com/android/ Android]. This version also lacks *fast  
reflection* and *line numbers in error messages*. For this reason, we  
recommend Guice+AOP 2.0 even in applications that don't use method  
interceptors.
+
+==Feature Comparison==
+
+||   || *Guice 1.0* || *Guice 2.0* || *Guice+AOP 2.0* ||
+|| Jar size || 544Kb || 784Kb || 1004Kb ||
+|| High performance || ✔ || ✔ || ✔ ||
+|| Binding EDSL || ✔ || ✔ || ✔ ||
+|| Scopes || ✔ || ✔ || ✔ ||
+|| Typesafe || ✔ || ✔ || ✔ ||
+|| Fast reflection via [http://cglib.sourceforge.net/ cglib] || ✔ || || ✔ | 
|
+|| Line numbers in error messages  || ✔ ||  || ✔ ||
+|| Method interceptors  || ✔ || || ✔ ||
+|| Provider Methods ||  || ✔ || ✔ ||
+|| Binding overrides ||  || ✔ || ✔ ||
+|| Tool-friendly SPI ||  || ✔ || ✔ ||
+|| Child Injectors ||  || ✔ || ✔ ||
+|| Servlet Support || Scopes Only || ✔ || ✔ ||
+|| Error Reporting || Good || Better || Best ||
+
+==Building Guice without AOP==
+Guice has an ant task that creates a modified copy of the Guice  
source-tree. The copy uses the  
[http://publicobject.com/2009/02/preprocessing-java-with-munge.html munge]  
preprocessor to remove all bytecode-dependent APIs. Use the following  
commands to build Guice without AOP support:
+{{{
+ant no_aop
+cd build/no_aop/
+ant dist
+}}}
\ No newline at end of file

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"google-guice-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-guice-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to