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

      Snapshot createSnapshot​(long nativeHandle, Cleaner cleaner)
      Creates a new owning snapshot.
      Parameters:
      nativeHandle - a handle to the native snapshot object
      cleaner - a cleaner to register the destructor
      Returns:
      a new owning snapshot proxy
    • createFork

      Fork createFork​(long nativeHandle, Cleaner cleaner)
      Creates a new owning fork.
      Parameters:
      nativeHandle - a handle to the native fork object
      cleaner - a cleaner to register the destructor
      Returns:
      a new owning fork proxy