idea-plugin / arrow.meta.ide.dsl.application / ApplicationSyntax / overrideService

overrideService

open fun MetaIde.overrideService(from: Class<*>, to: Class<*>, override: Boolean = true): ExtensionPhase

overrides a Service interface from with to, when override == true. from and to need to have a type relationship, either through subtyping or other means like type-proofs. The application will raise an error at runtime if the latter is not valid or when override == false and there is already a service instance associated with from.

Do you like Arrow?

Arrow Org
<