代码之家  ›  专栏  ›  技术社区  ›  Maciek Sawicki

使用googleguicegraphviz扩展和私有模块

  •  4
  • Maciek Sawicki  · 技术社区  · 14 年前

    我有一个简单的私人模块:

    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");
        }
    }
    

    我在另一个模块中使用这个模块 install(new SomePrivateModule) . 不幸的是我得到了 "k_26662236" 以圆圈代替 @SomeAnotation SomeInterface SomeClass .

    当我换衣服的时候 SomePrivateModule 延伸 AbstractModule PrivateModule 一切正常。

    是窃听还是我做错了什么?

    1 回复  |  直到 9 年前
        1
  •  5
  •   Jesse Wilson    14 年前

    不幸的是,绘制私有模块还没有实现。