Class UserManagerAuthenticationGuiceRole
java.lang.Object
com.peterphi.usermanager.guice.authentication.UserManagerAuthenticationGuiceRole
- All Implemented Interfaces:
GuiceRole
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
adjustConfigurations
(List<PropertyFile> list) Provides an opportunity, pre-compositing, to influence the configuration sources and order.void
injectorCreated
(com.google.inject.Stage stage, ClassScannerFactory classScannerFactory, GuiceConfig guiceConfig, GuiceSetup guiceSetup, List<com.google.inject.Module> list, AtomicReference<com.google.inject.Injector> atomicReference, com.codahale.metrics.MetricRegistry metricRegistry) Called once the Injector has been createdvoid
register
(com.google.inject.Stage stage, ClassScannerFactory classScannerFactory, GuiceConfig guiceConfig, GuiceSetup guiceSetup, List<com.google.inject.Module> modules, AtomicReference<com.google.inject.Injector> atomicReference, com.codahale.metrics.MetricRegistry metricRegistry) Provides an opportunity to influence modules (adding, removing, reordering) being loaded.
-
Constructor Details
-
UserManagerAuthenticationGuiceRole
public UserManagerAuthenticationGuiceRole()
-
-
Method Details
-
adjustConfigurations
Description copied from interface:GuiceRole
Provides an opportunity, pre-compositing, to influence the configuration sources and order. Configuration sources earlier in this list will be overridden by configuration sources later in the list. Called beforeGuiceRole.register(Stage, ClassScannerFactory, GuiceConfig, GuiceSetup, List, AtomicReference, MetricRegistry)
- Specified by:
adjustConfigurations
in interfaceGuiceRole
-
register
public void register(com.google.inject.Stage stage, ClassScannerFactory classScannerFactory, GuiceConfig guiceConfig, GuiceSetup guiceSetup, List<com.google.inject.Module> modules, AtomicReference<com.google.inject.Injector> atomicReference, com.codahale.metrics.MetricRegistry metricRegistry) Description copied from interface:GuiceRole
Provides an opportunity to influence modules (adding, removing, reordering) being loaded. Called before the GuiceSetup class has loaded its modules. Called beforeGuiceRole.injectorCreated(Stage, ClassScannerFactory, GuiceConfig, GuiceSetup, List, AtomicReference, MetricRegistry)
- Specified by:
register
in interfaceGuiceRole
classScannerFactory
- a factory for a classpath scanner for the user application classes. Implementations should not hold on to this for long (to save memory usage)atomicReference
- a reference which will be updated to contain the Injector once the guice environment has been set upmetricRegistry
- the MetricsRegistry for environment-wide metrics
-
injectorCreated
public void injectorCreated(com.google.inject.Stage stage, ClassScannerFactory classScannerFactory, GuiceConfig guiceConfig, GuiceSetup guiceSetup, List<com.google.inject.Module> list, AtomicReference<com.google.inject.Injector> atomicReference, com.codahale.metrics.MetricRegistry metricRegistry) Description copied from interface:GuiceRole
Called once the Injector has been created- Specified by:
injectorCreated
in interfaceGuiceRole
classScannerFactory
- a factory for a classpath scanner for the user application classes. Implementations should not hold on to this for long (to save memory usage)list
- the final list of modules in useatomicReference
- the reference to the injector, must contain a non-null valuemetricRegistry
- the MetricsRegistry for environment-wide metrics
-