@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); }
@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(); }
public ObjectGraph buildScopedObjectGraph(Object... modules) { return objectGraph.plus(modules); }