Search in sources :

Example 1 with PluginRegistry

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));
}
Also used : NodeWidgetTableCountLink(io.datarouter.web.browse.widget.NodeWidgetTableCountLinkSupplier.NodeWidgetTableCountLink) HomepageRouteSet(io.datarouter.web.homepage.HomepageRouteSet) DefaultHomepageRouteSet(io.datarouter.web.homepage.DefaultHomepageRouteSet) DefaultEmailDistributionListZoneId(io.datarouter.web.config.properties.DefaultEmailDistributionListZoneId) DatarouterWebAppListenersClasses(io.datarouter.web.listener.WebAppListenersClasses.DatarouterWebAppListenersClasses) NodeWidgetDatabeanExporterLink(io.datarouter.web.browse.widget.NodeWidgetDatabeanExporterLinkSupplier.NodeWidgetDatabeanExporterLink) PublicDomain(io.datarouter.web.config.service.PublicDomain) DatarouterAppListenersClasses(io.datarouter.web.listener.AppListenersClasses.DatarouterAppListenersClasses) ServiceName(io.datarouter.web.config.service.ServiceName) PluginRegistry(io.datarouter.web.plugin.PluginRegistrySupplier.PluginRegistry) DailyDigestEmailZoneId(io.datarouter.web.digest.DailyDigestEmailZoneId) HomepageHandler(io.datarouter.web.homepage.HomepageHandler) SimpleHomepageHandler(io.datarouter.web.homepage.SimpleHomepageHandler) RequestProxySetter(io.datarouter.httpclient.proxy.RequestProxySetter) NoOpFilesRoot(io.datarouter.pathnode.FilesRoot.NoOpFilesRoot) FilesRoot(io.datarouter.pathnode.FilesRoot) PrivateDomain(io.datarouter.web.config.service.PrivateDomain) ContextName(io.datarouter.web.config.service.ContextName)

Aggregations

RequestProxySetter (io.datarouter.httpclient.proxy.RequestProxySetter)1 FilesRoot (io.datarouter.pathnode.FilesRoot)1 NoOpFilesRoot (io.datarouter.pathnode.FilesRoot.NoOpFilesRoot)1 NodeWidgetDatabeanExporterLink (io.datarouter.web.browse.widget.NodeWidgetDatabeanExporterLinkSupplier.NodeWidgetDatabeanExporterLink)1 NodeWidgetTableCountLink (io.datarouter.web.browse.widget.NodeWidgetTableCountLinkSupplier.NodeWidgetTableCountLink)1 DefaultEmailDistributionListZoneId (io.datarouter.web.config.properties.DefaultEmailDistributionListZoneId)1 ContextName (io.datarouter.web.config.service.ContextName)1 PrivateDomain (io.datarouter.web.config.service.PrivateDomain)1 PublicDomain (io.datarouter.web.config.service.PublicDomain)1 ServiceName (io.datarouter.web.config.service.ServiceName)1 DailyDigestEmailZoneId (io.datarouter.web.digest.DailyDigestEmailZoneId)1 DefaultHomepageRouteSet (io.datarouter.web.homepage.DefaultHomepageRouteSet)1 HomepageHandler (io.datarouter.web.homepage.HomepageHandler)1 HomepageRouteSet (io.datarouter.web.homepage.HomepageRouteSet)1 SimpleHomepageHandler (io.datarouter.web.homepage.SimpleHomepageHandler)1 DatarouterAppListenersClasses (io.datarouter.web.listener.AppListenersClasses.DatarouterAppListenersClasses)1 DatarouterWebAppListenersClasses (io.datarouter.web.listener.WebAppListenersClasses.DatarouterWebAppListenersClasses)1 PluginRegistry (io.datarouter.web.plugin.PluginRegistrySupplier.PluginRegistry)1