三个bind方法
/**
* Creates a binding to a key.
*/
LinkedBindingBuilder bind(Key key);
/**
* Creates a binding to a type.
*/
AnnotatedBindingBuilder bind(TypeLiteral typeLiteral);
/**
* Creates a binding to a type.
*/
AnnotatedBindingBuilder bind(Class type);
绑定Scope的
/**
* Binds a scope to an annotation.
*/
void bindScope(Class annotationType, Scope scope);
帮定拦截器的
使用Module进行配置
/**
* Uses the given module to configure more bindings.
*/
void install(Module module);
连静态方法也不放过):
/**
* Upon successful creation, the {@link Injector} will inject static fields
* and methods in the given classes.
*
* @param types for which static members will be injected
*/
void requestStaticInjection(Class... types);
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/13270562/viewspace-211688/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/13270562/viewspace-211688/