ResolveRole

public enum ResolveRole

Resolve Role

AppContext can loaded many ModuleFactory. When call Inject(), get instance by LoadPriority order by default.

Type

  • Rule methods that you specify.

    Declaration

    Swift

    public typealias FindMethod = ([ModuleFactory]) -> [ModuleFactory]

    Parameters

    factories

    Sorted list of Factory in priority order.

    Return Value

    Sorted list of Factory to be used.

Case

  • Get instance once with high priority order.

    Declaration

    Swift

    case `default`
  • Get instance all by high priority order.

    Declaration

    Swift

    case recursive
  • Other rule methods that you specify.

    Declaration

    Swift

    case custom(FindMethod)