Package org.symbol.sdk.facade
Class FacadeFactory
java.lang.Object
org.symbol.sdk.facade.FacadeFactory
- FacadeFactory
- Creates a
BlockchainFacadefor a blockchain chosen at runtime. Each handle is a thin adapter that delegates to a freshly constructed chain facade; the chain-specific type parameters make a foreign chain's transaction or key pair a compile error. Call the transaction-typed methods from a generic capture-helper method (see theBlockchainFacadeexample); the account, network and BIP32 surface is usable on the wildcard handle directly.
-
Method Summary
Modifier and TypeMethodDescriptionstatic BlockchainFacade<?, ?, ?> Creates a facade for the named blockchain and network.
-
Method Details
-
create
- FacadeFactory.create
- Creates a facade for the named blockchain and network.
- Parameters:
blockchain- Blockchain name ("symbol"or"nem", case-insensitive).networkName- Network name (e.g."mainnet","testnet").- Returns:
- Facade for the blockchain, typed as the blockchain-agnostic interface.
-