Class RootElementRegistryModule
java.lang.Object
com.google.inject.PrivateModule
dev.getelements.elements.sdk.guice.RootElementRegistryModule
- All Implemented Interfaces:
com.google.inject.Module
public class RootElementRegistryModule
extends com.google.inject.PrivateModule
Specifies a singleton
ElementRegistry instance scoped with the name specified in ElementRegistry.ROOT
and makes it available to the entire application. In addition to the core ElementRegistry this allows for the
specification of additional Element instances.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidwith(ElementLoader loader) with(Supplier<ElementLoader> loaderSupplier) Methods inherited from class com.google.inject.PrivateModule
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindListener, bindScope, configure, convertToTypes, currentStage, expose, expose, expose, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
-
Constructor Details
-
RootElementRegistryModule
public RootElementRegistryModule()
-
-
Method Details
-
configure
protected void configure()- Specified by:
configurein classcom.google.inject.PrivateModule
-
with
-
with
-