Package com.exonum.binding.core.runtime
Interface ViewFactory
- All Known Implementing Classes:
ViewProxyFactory
public interface ViewFactory
A factory of views.
Enables easier testing of the service runtime adapter.
-
Method Summary
Modifier and Type Method Description Fork
createFork(long nativeHandle, Cleaner cleaner)
Creates a new owning fork.Snapshot
createSnapshot(long nativeHandle, Cleaner cleaner)
Creates a new owning snapshot.
-
Method Details
-
createSnapshot
Creates a new owning snapshot.- Parameters:
nativeHandle
- a handle to the native snapshot objectcleaner
- a cleaner to register the destructor- Returns:
- a new owning snapshot proxy
-
createFork
Creates a new owning fork.- Parameters:
nativeHandle
- a handle to the native fork objectcleaner
- a cleaner to register the destructor- Returns:
- a new owning fork proxy
-