use of io.datarouter.web.plugin.PluginRegistrySupplier.PluginRegistry in project datarouter by hotpads.
the class DatarouterWebPlugin method configure.
@Override
public void configure() {
bind(FilesRoot.class).to(filesClass);
bindActualNullSafe(ExceptionRecorder.class, exceptionRecorderClass);
bindActualNullSafe(DatarouterAuthenticationConfig.class, authenticationConfigClass);
bindActualNullSafe(CurrentSessionInfo.class, currentSessionInfoClass);
bindDefault(ExceptionHandlingConfig.class, exceptionHandlingConfigClass);
bindActualInstance(AppListenersClasses.class, new DatarouterAppListenersClasses(appListenerClasses));
bindActualInstance(WebAppListenersClasses.class, new DatarouterWebAppListenersClasses(webAppListenerClasses));
bindActualNullSafe(RoleManager.class, roleManagerClass);
bindActualNullSafe(UserSessionService.class, userSessionServiceClass);
bindActualNullSafe(DatarouterUserExternalDetailService.class, datarouterUserExternalDetailClass);
bindActualNullSafe(AppNavBarRegistrySupplier.class, appNavBarRegistrySupplier);
bind(HomepageHandler.class).to(homepageHandler);
bind(HomepageRouteSet.class).to(homepageRouteSet);
bindActualInstance(PluginRegistrySupplier.class, new PluginRegistry(registeredPlugins));
bindActualInstance(NodeWidgetDatabeanExporterLinkSupplier.class, new NodeWidgetDatabeanExporterLink(nodeWidgetDatabeanExporterLink));
bindActualInstance(NodeWidgetTableCountLinkSupplier.class, new NodeWidgetTableCountLink(nodeWidgetTableCountLink));
bind(RequestProxySetter.class).to(requestProxy);
bindActualInstance(DefaultEmailDistributionListZoneId.class, new DefaultEmailDistributionListZoneId(defaultEmailDistributionListZoneId));
bindActualInstance(DailyDigestEmailZoneId.class, new DailyDigestEmailZoneId(dailyDigestEmailZoneId));
bindActualInstance(ServiceName.class, new ServiceName(serviceName));
bindActualInstance(PublicDomain.class, new PublicDomain(publicDomain));
bindActualInstance(PrivateDomain.class, new PrivateDomain(privateDomain));
bindActualInstance(ContextName.class, new ContextName(contextName));
}
Aggregations