java.lang.Object
com.zeroc.Ice.CompositeSliceLoader
- All Implemented Interfaces:
SliceLoader
Implements
SliceLoader by combining multiple SliceLoader instances.-
Constructor Summary
ConstructorsConstructorDescriptionCompositeSliceLoader(SliceLoader... loaders) Constructs a CompositeSliceLoader that combines the given SliceLoaders. -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(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
Constructs a CompositeSliceLoader that combines the given SliceLoaders.- Parameters:
loaders- the initial Slice loaders to use
-
-
Method Details
-
add
Adds a SliceLoader to this CompositeSliceLoader.- Parameters:
loader- the SliceLoader to add
-
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
-