Package org.eblocker.server.common
Class EblockerModule
java.lang.Object
com.google.inject.AbstractModule
org.eblocker.server.common.ConfigurableModule
org.eblocker.server.common.BaseModule
org.eblocker.server.common.EblockerModule
- All Implemented Interfaces:
com.google.inject.Module
Module for dependency injection of eBlocker https + icap server.
Provides an executor service
for background tasks.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidjava.time.ClockA clock for the recording serviceprovideHighPrioScheduledExecutor(ShutdownExecutorService shutdownExecutorService) Use this scheduled executor for short tasks that are relatively urgent but take at most a few seconds to completejava.time.ClockA clock that is in the default time zoneprovideLowPrioScheduledExecutor(ShutdownExecutorService shutdownExecutorService) Use this scheduled executor for long running and possibly CPU intensive tasksprovideMalwareFilterIp6Set(String name, String type, String family, int maxSize) provideMalwareFilterIpSet(String name, String type, String family, int maxSize) io.netty.channel.nio.NioEventLoopGroupprovideNettyBossEventGroupLoop(Executor executor) io.netty.channel.nio.NioEventLoopGroupprovideNettyWorkerEventGroupLoop(Executor executor) provideUnlimitedCachePoolExecutor(ExecutorService executorService) provideUnlimitedCachePoolExecutorService(ShutdownExecutorService shutdownExecutorService) org.fourthline.cling.UpnpServiceprovideUpnpService(NetworkAddressFactoryCustomization customization) This method constructs a customized NetworkAddressFactory.Methods inherited from class org.eblocker.server.common.BaseModule
provideSystemKeyWrapperMethods inherited from class org.eblocker.server.common.ConfigurableModule
getConfigurationPropertiesInputStream, getCurrentProjectVersion, getPropertyMethods inherited from class com.google.inject.AbstractModule
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
-
Constructor Details
-
EblockerModule
- Throws:
IOException
-
-
Method Details
-
configure
protected void configure()- Overrides:
configurein classBaseModule
-
provideClock
@Provides public java.time.Clock provideClock()A clock for the recording service -
provideLocalClock
@Provides public java.time.Clock provideLocalClock()A clock that is in the default time zone- Returns:
-
provideLowPrioScheduledExecutor
@Provides public ScheduledExecutorService provideLowPrioScheduledExecutor(ShutdownExecutorService shutdownExecutorService) Use this scheduled executor for long running and possibly CPU intensive tasks- Returns:
-
provideHighPrioScheduledExecutor
@Provides public ScheduledExecutorService provideHighPrioScheduledExecutor(ShutdownExecutorService shutdownExecutorService) Use this scheduled executor for short tasks that are relatively urgent but take at most a few seconds to complete- Returns:
-
provideUnlimitedCachePoolExecutor
-
provideUnlimitedCachePoolExecutorService
@Provides public ExecutorService provideUnlimitedCachePoolExecutorService(ShutdownExecutorService shutdownExecutorService) -
provideToolbarInlayTemplate
-
provideToolbarInlayMinifiedJs
-
provideToolbarInlayMinifiedCss
-
provideArpProbeCache
-
httpAliasesMap
-
provideMalwareFilterIpSet
@Provides public IpSetConfig provideMalwareFilterIpSet(String name, String type, String family, int maxSize) -
provideMalwareFilterIp6Set
@Provides public IpSetConfig provideMalwareFilterIp6Set(String name, String type, String family, int maxSize) -
provideUpnpService
@Provides public org.fourthline.cling.UpnpService provideUpnpService(NetworkAddressFactoryCustomization customization) This method constructs a customized NetworkAddressFactory. NetworkAddressFactoryImpl is not subclassed explicitly because it calls the overridden methods in its constructor so setting member variables is not possible. Actual customization is moved to an extra class for testability:NetworkAddressFactoryCustomization -
provideNettyBossEventGroupLoop
@Provides public io.netty.channel.nio.NioEventLoopGroup provideNettyBossEventGroupLoop(Executor executor) -
provideNettyWorkerEventGroupLoop
@Provides public io.netty.channel.nio.NioEventLoopGroup provideNettyWorkerEventGroupLoop(Executor executor) -
anonymousController
-
appWhitelistModuleController
-
authenticationController
-
controlBarController
-
deviceController
-
deviceRegistrationController
-
dnsController
-
domainWhiteListController
-
dashboardCardController
-
customerInfoController
-
eventController
-
factoryResetController
-
featureController
-
featureToggleController
-
mobileConnectionCheckController
-
mobileDnsCheckController
-
filterController
-
languageController
-
messageCenterController
-
networkController
-
openVpnController
-
openVpnServerController
-
pageContextController
-
parentalControlController
-
parentalControlFilterListsController
-
recordingController
-
redirectController
-
reminderController
-
splashController
-
sslController
-
productMigrationController
-
settingsController
-
setupWizardController
-
timestampController
-
timezoneController
-
transactionRecorderController
-
domainRecorderController
-
updateController
-
userAgentController
-
userController
-
tosController
-
customDomainFilterController
-
filterStatisticsController
-
configurationBackupController
-
ledSettingsController
-
tasksController
-
connectionCheckController
-
blockerController
-
doctorControllerController
-