java.lang.Object
com.zeroc.Ice.CompositeSliceLoader
- All Implemented Interfaces:
SliceLoader
Implements SliceLoader by combining multiple SliceLoaders.
-
Constructor Summary
ConstructorsConstructorDescriptionCompositeSliceLoader
(SliceLoader... loaders) Creates a CompositeSliceLoader that combines the given SliceLoaders. -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(SliceLoader loader) Adds a SliceLoader to this CompositeSliceLoader.newInstance
(String typeId) Creates an instance of a class mapped from a Slice class or exception based on a Slice type ID.
-
Constructor Details
-
CompositeSliceLoader
Creates a CompositeSliceLoader that combines the given SliceLoaders.- Parameters:
loaders
- The initial Slice loaders.
-
-
Method Details
-
add
Adds a SliceLoader to this CompositeSliceLoader.- Parameters:
loader
- The SliceLoader to add.
-
newInstance
Description copied from interface:SliceLoader
Creates an instance of a class mapped from a Slice class or exception based on a Slice type ID.- Specified by:
newInstance
in interfaceSliceLoader
- 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.
-