Package com.zeroc.Ice

Interface ValueFactory

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ValueFactory
A factory for values. Value factories are used in several places, such as when Ice receives a class instance and when Freeze restores a persistent value. Value factories must be implemented by the application writer and registered with the communicator.
  • Method Summary

    Modifier and Type
    Method
    Description
    create(String type)
    Create a new value for a given value type.
  • Method Details

    • create

      Value create(String type)
      Create a new value for a given value type. The type is the absolute Slice type id, i.e., the id relative to the unnamed top-level Slice module. For example, the absolute Slice type id for an interface Bar in the module Foo is "::Foo::Bar". Note that the leading "::" is required.
      Parameters:
      type - The value type.
      Returns:
      The value created for the given type, or nil if the factory is unable to create the value.