Class ServicesModule
java.lang.Object
com.google.inject.AbstractModule
dev.getelements.elements.service.guice.ServicesModule
- All Implemented Interfaces:
com.google.inject.Module
public class ServicesModule
extends com.google.inject.AbstractModule
-
Constructor Summary
ConstructorsConstructorDescriptionServicesModule
(com.google.inject.Scope scope) Configures all services to use the followingScope
andAttributes
jakarta.inject.Provider<Attributes>
type, which is used to match theAttributes
to the associatedScope
. -
Method Summary
Methods 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, requestInjection, requestStaticInjection, requireBinding, requireBinding
-
Constructor Details
-
ServicesModule
public ServicesModule(com.google.inject.Scope scope) Configures all services to use the followingScope
andAttributes
jakarta.inject.Provider<Attributes>
type, which is used to match theAttributes
to the associatedScope
.- Parameters:
scope
- the scope
-
-
Method Details
-
configure
protected void configure()- Overrides:
configure
in classcom.google.inject.AbstractModule
-