Package com.quantum4j.core.backend
Class BackendFactory
java.lang.Object
com.quantum4j.core.backend.BackendFactory
Registry and factory for backend instances.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Backendget(BackendType type) Get a backend by type.static voidregister(BackendType type, Backend backend) Register a backend for a given type.
-
Method Details
-
get
Get a backend by type.- Parameters:
type- backend type- Returns:
- backend instance or null if not registered
-
register
Register a backend for a given type.- Parameters:
type- backend typebackend- backend instance
-