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 SliceLoaders.
  • Constructor Details

    • CompositeSliceLoader

      public CompositeSliceLoader(SliceLoader... loaders)
      Creates a CompositeSliceLoader that combines the given SliceLoaders.
      Parameters:
      loaders - The initial Slice loaders.
  • 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.