Package com.zeroc.Ice

Interface SliceLoader

All Known Implementing Classes:
ClassSliceLoader, CompositeSliceLoader, DefaultPackageSliceLoader, ModuleToPackageSliceLoader
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 SliceLoader
Creates class and exception instances from Slice type IDs.
  • Method Summary

    Modifier and Type
    Method
    Description
    Creates an instance of a class mapped from a Slice class or exception based on a Slice type ID.
  • Method Details

    • newInstance

      Object newInstance(String typeId)
      Creates an instance of a class mapped from a Slice class or exception based on a Slice type ID.
      Parameters:
      typeId - The Slice type ID or compact type ID.
      Returns:
      A new instance of the class or exception identified by typeId, or null if the implementation cannot find the corresponding class.
      Throws:
      MarshalException - If the corresponding class was found but its instantiation failed.