mirror of
https://github.com/google/nomulus.git
synced 2025-05-13 07:57:13 +02:00
Remove extraneous modules from FlowComponent
This change removes ConfigModule from FlowComponent, since it's already present in all of the standard components that serve as "parents" to FlowComponent (i.e. it's in FrontendComponent, BackendComponent, ToolsComponent, and EppTestComponent). ConfigModule should only ever be included in top-level components, so that it's possible to swap it out without having to make changes deep within subcomponent code. This change also removes SystemSleeperModule, which belongs at the top-level component as well, and is present in BackendComponent and ToolsComponent but was absent in FrontendComponent and EppTestComponent. I've added it to those two places. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=140053552
This commit is contained in:
parent
5eb9702f05
commit
aa670e5df2
3 changed files with 12 additions and 5 deletions
|
@ -17,7 +17,6 @@ package google.registry.flows;
|
|||
import dagger.Module;
|
||||
import dagger.Provides;
|
||||
import dagger.Subcomponent;
|
||||
import google.registry.config.ConfigModule;
|
||||
import google.registry.dns.DnsModule;
|
||||
import google.registry.flows.async.AsyncFlowsModule;
|
||||
import google.registry.flows.contact.ContactCheckFlow;
|
||||
|
@ -60,18 +59,15 @@ import google.registry.flows.session.HelloFlow;
|
|||
import google.registry.flows.session.LoginFlow;
|
||||
import google.registry.flows.session.LogoutFlow;
|
||||
import google.registry.model.eppcommon.Trid;
|
||||
import google.registry.util.SystemSleeper.SystemSleeperModule;
|
||||
|
||||
/** Dagger component for flow classes. */
|
||||
@FlowScope
|
||||
@Subcomponent(modules = {
|
||||
AsyncFlowsModule.class,
|
||||
ConfigModule.class,
|
||||
CustomLogicModule.class,
|
||||
DnsModule.class,
|
||||
FlowModule.class,
|
||||
FlowComponent.FlowComponentModule.class,
|
||||
SystemSleeperModule.class})
|
||||
FlowComponent.FlowComponentModule.class})
|
||||
public interface FlowComponent {
|
||||
|
||||
Trid trid();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue