- 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.
Creates class and exception instances from Slice type IDs.
-
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.
-
Method Details
-
newInstance
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, ornullif the implementation cannot find the corresponding class - Throws:
MarshalException- if the corresponding class was found but its instantiation failed
-