Extend RegistrationContext to support pre/post deps mutators
Test: m checkbuild Bug: 146540677 Change-Id: If5b30f1124ce5671c26ec76ca1f7b029841e20b1
This commit is contained in:
@@ -125,6 +125,8 @@ type RegistrationContext interface {
|
|||||||
RegisterModuleType(name string, factory ModuleFactory)
|
RegisterModuleType(name string, factory ModuleFactory)
|
||||||
RegisterSingletonType(name string, factory SingletonFactory)
|
RegisterSingletonType(name string, factory SingletonFactory)
|
||||||
PreArchMutators(f RegisterMutatorFunc)
|
PreArchMutators(f RegisterMutatorFunc)
|
||||||
|
PreDepsMutators(f RegisterMutatorFunc)
|
||||||
|
PostDepsMutators(f RegisterMutatorFunc)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Used to register build components from an init() method, e.g.
|
// Used to register build components from an init() method, e.g.
|
||||||
@@ -175,3 +177,11 @@ func (ctx *initRegistrationContext) RegisterSingletonType(name string, factory S
|
|||||||
func (ctx *initRegistrationContext) PreArchMutators(f RegisterMutatorFunc) {
|
func (ctx *initRegistrationContext) PreArchMutators(f RegisterMutatorFunc) {
|
||||||
PreArchMutators(f)
|
PreArchMutators(f)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (ctx *initRegistrationContext) PreDepsMutators(f RegisterMutatorFunc) {
|
||||||
|
PreDepsMutators(f)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (ctx *initRegistrationContext) PostDepsMutators(f RegisterMutatorFunc) {
|
||||||
|
PostDepsMutators(f)
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user