Open GoogleCodeExporter opened 9 years ago
here is a example usage of the ChainModule:
http://javaonhorse.googlecode.com/svn/branches/pre-0.1-taowen-spike-2/javaonhors
e-auxiliary/src/test/java/com/google/inject/chain/multiple_modules.java
Original comment by tao...@gmail.com
on 8 Jan 2009 at 9:36
I updated my implementation quite alot. now
http://javaonhorse.googlecode.com/svn/branches/pre-0.1-taowen-spike-2/javaonhors
e-auxiliary/src/main/java/com/google/inject/
includes 4 kinds of special abstract module to bind SetOf<T> (same as
Mutlibinder),
ListOf<T> (ordered), ChainOf<T> (impl decorated by a chain of decorators),
DecoratorFactoryOf<T> (decorators only, allow user to choose the impl to
decorate
with). The value of these four kinds of modules is, it provides a extension
model to
Module. If I provide a SetOf<T> in my binding, that means other module can bind
same
SetOf<T> to participate into my configuration. So in my usage, I allow other
modules
to "plug in" my modules in four ways:
bind a optional binding
add element to list
add element to set
decorate more decorators in chain
Original comment by tao...@gmail.com
on 12 Jan 2009 at 2:28
Original comment by limpbizkit
on 26 Apr 2009 at 9:23
Original comment by limpbizkit
on 26 Apr 2009 at 9:43
Original comment by limpbizkit
on 27 Apr 2009 at 6:10
Original issue reported on code.google.com by
tao...@gmail.com
on 8 Jan 2009 at 9:34