Add a custom logic framework to provide pluggable extensibility

To add additional logic for flow code, write custom classes that extend the existing custom logic classes (of which DomainCreateFlowCustomLogic is the first provided example), along with a class that extends CustomLogicFactory to provide instances of the new custom logic classes. Then configure the fully qualified class name of your new custom logic factory in ConfigModule.provideCustomLogicFactoryClass().

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=139221577
This commit is contained in:
mcilwain 2016-11-15 11:01:10 -08:00 committed by Ben McIlwain
parent 3942f0768b
commit 4d2e0941f3
15 changed files with 435 additions and 17 deletions

View file

@ -17,6 +17,7 @@ package google.registry.module.frontend;
import dagger.Component;
import google.registry.braintree.BraintreeModule;
import google.registry.config.ConfigModule;
import google.registry.flows.custom.CustomLogicFactoryModule;
import google.registry.keyring.api.DummyKeyringModule;
import google.registry.keyring.api.KeyModule;
import google.registry.module.frontend.FrontendRequestComponent.FrontendRequestComponentModule;
@ -40,6 +41,7 @@ import javax.inject.Singleton;
BraintreeModule.class,
ConfigModule.class,
ConsoleConfigModule.class,
CustomLogicFactoryModule.class,
DummyKeyringModule.class,
FrontendMetricsModule.class,
FrontendRequestComponentModule.class,