@NotThreadSafe
public class ContractMachine
extends java.lang.Object
Constructor and Description |
---|
ContractMachine(java.lang.Object contract) |
Modifier and Type | Method and Description |
---|---|
protected void |
finalize()
SpotBugs detects Bug Type "CT_CONSTRUCTOR_THROW" saying that "The object under construction
remains partially initialized and may be vulnerable to Finalizer attacks."
|
ClientIdentityKey |
getClientIdentityKey() |
java.lang.Object |
getContext() |
com.scalar.dl.ledger.contract.ContractBase<?> |
getContractBase() |
DeserializationType |
getDeserializationType() |
void |
initialize(ContractManager manager,
ClientIdentityKey clientIdentityKey) |
<T> java.lang.String |
invoke(Ledger<T> ledger,
java.lang.String argument,
java.lang.String properties) |
boolean |
isRoot() |
void |
setRoot(boolean isRoot) |
protected final void finalize()
finalize
in class java.lang.Object
public void initialize(ContractManager manager, ClientIdentityKey clientIdentityKey)
public void setRoot(boolean isRoot)
public boolean isRoot()
public ClientIdentityKey getClientIdentityKey()
@Nullable public java.lang.Object getContext()
@Nullable public <T> java.lang.String invoke(Ledger<T> ledger, java.lang.String argument, @Nullable java.lang.String properties)
public com.scalar.dl.ledger.contract.ContractBase<?> getContractBase()
public DeserializationType getDeserializationType()