使用Google Guice GraphViz扩展程序和私有模块

Mac*_*cki 4 java visualization dependency-injection guice

我有简单的私人模块:

public class SomePrivateModule extends PrivateModule {
    @Override
    protected void configure() {
        bind(SomeInterface.class).
        annotatedWith(SomeAnotation.class).
        to(SomeClass.class);

        expose(SomeInterface.class).annotatedWith(SomeAnotation.class);


        bind(String.class).annotatedWith(Names.named("some_name")).toInstance("foofoo");
    }
}
Run Code Online (Sandbox Code Playgroud)

我在另一个模块中使用此模块install(new SomePrivateModule).不幸的是,在依赖关系图上我得到"k_26662236"了圆形而不是@SomeAnotation SomeInterface矩形和依赖关系SomeClass.

当我改变SomePrivateModule扩展AbstractModule而不是PrivateModule一切正常.

它是Guice中的错误还是我做错了什么?

Jes*_*son 5

不幸的是,图形私有模块尚未实现.