java.lang.Object
com.zeroc.Ice.ClassSliceLoader
- All Implemented Interfaces:
SliceLoader
Implements
SliceLoader using an array of classes with the SliceTypeId annotation.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnewInstance(String typeId) Creates an instance of a class mapped from a Slice class or exception based on a Slice type ID.
-
Constructor Details
-
ClassSliceLoader
Creates a ClassSliceLoader.- Parameters:
classes- an array of classes with theSliceTypeIdannotation. Each class may also have theCompactSliceTypeIdannotation.- Throws:
IllegalArgumentException- if any of the provided classes are not annotated withSliceTypeId
-
-
Method Details
-
newInstance
Description copied from interface:SliceLoaderCreates an instance of a class mapped from a Slice class or exception based on a Slice type ID.- Specified by:
newInstancein interfaceSliceLoader- Parameters:
typeId- the Slice type ID or compact type ID- Returns:
- a new instance of the class or exception identified by
typeId, ornullif the implementation cannot find the corresponding class
-