// IEntityFactory<Long>
bind(IEntityFactory.class).toProvider(new Provider<IEntityFactory>() {
@Override
public IEntityFactory get() {
return new TestEntityFactory();
}
}).in(Scopes.SINGLETON);
// ListableBeanFactory
bind(ListableBeanFactory.class).toProvider(new Provider<ListableBeanFactory>() {