- 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
, ornull
if the implementation cannot find the corresponding class. - Throws:
MarshalException
- If the corresponding class was found but its instantiation failed.
-