Package com.zeroc.Ice

Class CompositeSliceLoader

java.lang.Object
com.zeroc.Ice.CompositeSliceLoader
All Implemented Interfaces:
SliceLoader

public final class CompositeSliceLoader extends Object implements SliceLoader
Implements SliceLoader by combining multiple SliceLoader instances.
  • Constructor Details

    • CompositeSliceLoader

      public CompositeSliceLoader(SliceLoader... loaders)
      Constructs a CompositeSliceLoader that combines the given SliceLoaders.
      Parameters:
      loaders - the initial Slice loaders to use
  • Method Details

    • add

      public void add(SliceLoader loader)
      Adds a SliceLoader to this CompositeSliceLoader.
      Parameters:
      loader - the SliceLoader to add
    • newInstance

      public Object newInstance(String typeId)
      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 interface SliceLoader
      Parameters:
      typeId - the Slice type ID or compact type ID
      Returns:
      a new instance of the class or exception identified by typeId, or null if the implementation cannot find the corresponding class