Esempio n. 1
0
  @Override
  public void load(final PluginInfo pluginInfo, final ObjectGraph graph) {
    super.load(pluginInfo, graph);

    setObjectGraph(graph.plus(new AudioPluginModule()));
    registerCommand(AudioCommand.class, AudioCommand.INFO);
    registerCommand(BeepCommand.class, BeepCommand.INFO);
  }
Esempio n. 2
0
  @Override
  public void onCreate() {
    super.onCreate();

    System.out.println(
        "JCC: APP STARTED ----------------------------------------------------------------------------------------------------");

    objectGraph = ObjectGraph.create(new ApplicationModule(this));
    objectGraph =
        objectGraph.plus(
            new PojoEventBusModule(),
            new DomainEventBusModule(this),
            new LoginEventBusModule(this));

    objectGraph.inject(this);

    UIComponentCache = new UIComponentCache();
  }
Esempio n. 3
0
 public ObjectGraph buildScopedObjectGraph(Object... modules) {
   return objectGraph.plus(modules);
 }