SwiftclassJetCore
BaseObjectGraph
class JetCore.BaseObjectGraph
Structure
What a query’s scopes step through. Every node here can be matched — see the syntax.
inherits{}
- protocolSwift.CustomStringConvertible
Members 55
- func
static build(withName: String) -> JetCore.AsyncObjectGraphBuilder - var
static var current: Self { get } - deinit
deinit - field
let dependencies: JetCore.DependencyDictionary+0x10 - field
var name: String+0x18 - func
_dependencyPersonality<A>(of: A.Type) -> JetCore.Dependency._Personality? - func
_downcast<A where A: JetCore.BaseObjectGraph>(to: A.Type) -> A - func
_hasDependency<A>(A.Type) -> Bool - func
_inject<A where A: JetCore.Injectable>(A.Type) -> A - func
_inject<A where A: JetCore.Injectable, A: Sendable>(A.Type) async throws -> A - func
_inject<A where A: Sendable>(A.Type) async throws -> A - func
_inject<A>(A.Type) -> A - func
_injectIfAvailable<A where A: Sendable>(A.Type) async throws -> A? - func
_injectIfAvailable<A>(A.Type) -> A? - func
_withDependenciesResolved<A where A: Sequence, A.Element == Any.Type>(A) async throws -> Self - func
adding(allDependenciesOf: JetCore.BaseObjectGraph) -> Self - func
adding<A where A: Sequence, A.Element == JetCore.Dependency>(allDependencies: A) -> Self - func
adding(dependency: JetCore.Dependency) -> Self - func
adding(uniqueDependenciesOf: JetCore.BaseObjectGraph) -> Self - func
dependencies<A>(compatibleWith: A.Type) -> [A] - func
errorDescription<A>(forNoMemberSatisfying: A.Type) -> String - func
inject<A where A: JetCore.AsyncOnlyAsDependency, A: JetCore.Injectable>(A.Type) -> A - func
inject<A where A: JetCore.AsyncOnlyAsDependency>(A.Type) -> A - func
inject<A where A: JetCore.Injectable>(A.Type) -> A - func
inject<A where A: JetCore.Injectable, A: Sendable>(A.Type) async throws -> A - func
inject<A where A: Sendable>(A.Type) async throws -> A - func
inject<A>(A.Type) -> A - func
injectAsyncThrowing<A where A: JetCore.AsyncThrowingDependency, A: Sendable>(A.Type) async throws -> A - func
injectIfAvailable<A where A: JetCore.AsyncOnlyAsDependency>(A.Type) -> A? - func
injectIfAvailable<A where A: Sendable>(A.Type) async throws -> A? - func
injectIfAvailable<A>(A.Type) -> A? - func
injectIfAvailableAsyncThrowing<A where A: JetCore.AsyncThrowingDependency, A: Sendable>(A.Type) async throws -> A? - func
injectIfAvailableSync<A where A: JetCore.SyncDependency>(A.Type) -> A? - func
injectIfAvailableSync<A where A: JetCore.SyncDependency, A: Sendable>(A.Type) -> A? - func
injectIfAvailableSyncThrowing<A where A: JetCore.SyncThrowingDependency>(A.Type) throws -> A? - func
injectIfAvailableSyncThrowing<A where A: JetCore.SyncThrowingDependency, A: Sendable>(A.Type) throws -> A? - func
injectSync<A where A: JetCore.SyncDependency>(A.Type) -> A - func
injectSync<A where A: JetCore.SyncDependency, A: Sendable>(A.Type) -> A - func
injectSyncThrowing<A where A: JetCore.SyncThrowingDependency>(A.Type) throws -> A - func
injectSyncThrowing<A where A: JetCore.SyncThrowingDependency, A: Sendable>(A.Type) throws -> A - func
noMemberFound<A>(toSatisfy: A.Type) -> Never - func
optional<A>(A.Type) -> A? - func
performAsCurrent<A>(() throws -> A) throws -> A - func
performAsCurrent<A>(() async throws -> A) async throws -> A - func
required<A>(A.Type) -> A - func
subtracting<A where A: Sequence, A.Element == Any.Type>(dependenciesFor: A) -> Self - func
subtracting(dependencyFor: Any.Type) -> Self - func
subtracting<A where A: Sequence, A.Element == Any.Type>(allDependenciesExcept: A) -> Self - init
JetCore.BaseObjectGraph.__allocating_init(name: String, dependencies: JetCore.DependencyDictionary) -> JetCore.BaseObjectGraph - init
JetCore.BaseObjectGraph.__allocating_init(name: String, _: JetCore.Dependency...) -> JetCore.BaseObjectGraph - init
JetCore.BaseObjectGraph.__allocating_init(JetCore.BaseObjectGraph) -> JetCore.BaseObjectGraph - var
final var _withAllDependenciesResolved: Self { get } - var
var availableCandidates: [JetCore.OpaqueMetatype] { get } - var
final var buildUpon: JetCore.AsyncObjectGraphBuilder { get } - var
var description: String { get }
Header
class BaseObjectGraph { let dependencies: JetCore.DependencyDictionary var name: Swift.String init(name: Swift.String, dependencies: JetCore.DependencyDictionary) func performAsCurrent<A>(_: () throws -> A) throws -> A func performAsCurrent<A>(_: () async throws -> A) async throws -> A var availableCandidates: [JetCore.OpaqueMetatype] { get } func adding(allDependenciesOf: JetCore.BaseObjectGraph) -> Self func adding<A>(allDependencies: A) -> Self where A: Swift.Sequence, A.Element == JetCore.Dependency func adding(dependency: JetCore.Dependency) -> Self func adding(uniqueDependenciesOf: JetCore.BaseObjectGraph) -> Self func subtracting<A>(dependenciesFor: A) -> Self where A: Swift.Sequence, A.Element == any Any.Type func subtracting(dependencyFor: any Any.Type) -> Self func subtracting<A>(allDependenciesExcept: A) -> Self where A: Swift.Sequence, A.Element == any Any.Type func errorDescription<A>(forNoMemberSatisfying: A.Type) -> Swift.String func noMemberFound<A>(toSatisfy: A.Type) -> Swift.Never var description: Swift.String { get } init(name: Swift.String, _: JetCore.Dependency...) init(_: JetCore.BaseObjectGraph) final var _withAllDependenciesResolved: Self { get } final var buildUpon: any JetCore.AsyncObjectGraphBuilder { get } final func injectSync<A>(_: A.Type) -> A where A: JetCore.SyncDependency final func injectSync<A>(_: A.Type) -> A where A: JetCore.SyncDependency, A: Swift.Sendable final func dependencies<A>(compatibleWith: A.Type) -> [A] final func _hasDependency<A>(_: A.Type) -> Swift.Bool final func injectIfAvailable<A>(_: A.Type) -> A? where A: JetCore.AsyncOnlyAsDependency final func _injectIfAvailable<A>(_: A.Type) async throws -> A? where A: Swift.Sendable final func _injectIfAvailable<A>(_: A.Type) -> A? final func injectSyncThrowing<A>(_: A.Type) throws -> A where A: JetCore.SyncThrowingDependency final func injectSyncThrowing<A>(_: A.Type) throws -> A where A: JetCore.SyncThrowingDependency, A: Swift.Sendable final func injectAsyncThrowing<A>(_: A.Type) async throws -> A where A: JetCore.AsyncThrowingDependency, A: Swift.Sendable final func injectIfAvailableSync<A>(_: A.Type) -> A? where A: JetCore.SyncDependency final func injectIfAvailableSync<A>(_: A.Type) -> A? where A: JetCore.SyncDependency, A: Swift.Sendable final func _dependencyPersonality<A>(of: A.Type) -> JetCore.Dependency._Personality? final func _withDependenciesResolved<A>(_: A) async throws -> Self where A: Swift.Sequence, A.Element == any Any.Type final func injectIfAvailableSyncThrowing<A>(_: A.Type) throws -> A? where A: JetCore.SyncThrowingDependency final func injectIfAvailableSyncThrowing<A>(_: A.Type) throws -> A? where A: JetCore.SyncThrowingDependency, A: Swift.Sendable final func injectIfAvailableAsyncThrowing<A>(_: A.Type) async throws -> A? where A: JetCore.AsyncThrowingDependency, A: Swift.Sendable final func inject<A>(_: A.Type) -> A where A: JetCore.AsyncOnlyAsDependency, A: JetCore.Injectable final func inject<A>(_: A.Type) -> A where A: JetCore.AsyncOnlyAsDependency final func _inject<A>(_: A.Type) -> A where A: JetCore.Injectable final func _inject<A>(_: A.Type) async throws -> A where A: JetCore.Injectable, A: Swift.Sendable final func _inject<A>(_: A.Type) async throws -> A where A: Swift.Sendable final func _inject<A>(_: A.Type) -> A final func optional<A>(_: A.Type) -> A? final func required<A>(_: A.Type) -> A final func _downcast<A>(to: A.Type) -> A where A: JetCore.BaseObjectGraph static var current: Self { get } static func build(withName: Swift.String) -> any JetCore.AsyncObjectGraphBuilder deinit }