コード例 #1
0
ファイル: Modules.java プロジェクト: joseblas/utterlyidle
 public Modules setupApplicationScope(Container applicationScope) {
   applicationScope.addInstance(Modules.class, this);
   applicationScope.addActivator(
       ModuleDefinitions.class, applicationScope.getActivator(Modules.class));
   selfRegister(applicationScope);
   return this;
 }
コード例 #2
0
 public Server start(ServerConfiguration configuration) {
   container.addInstance(ServerConfiguration.class, configuration);
   container.addInstance(BasePath.class, configuration.basePath());
   container.addActivator(Server.class, ServerActivator.class);
   return container.get(Server.class);
 }