Ice.CompactIdResolver Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ice-compat Show documentation
Show all versions of ice-compat Show documentation
Ice is a comprehensive RPC framework that helps you build distributed applications with minimal effort using familiar object-oriented idioms
// **********************************************************************
//
// Copyright (c) 2003-2018 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
package Ice;
/**
* Applications that make use of compact type IDs to conserve space
* when marshaling class instances, and also use the streaming API to
* extract such classes, can intercept the translation between compact
* type IDs and their corresponding string type IDs by installing an
* instance of CompactIdResolver
in InitializationData
.
**/
public interface CompactIdResolver
{
/**
* Translates a compact (integer) ID into its string equivalent.
*
* @param id The compact ID.
* @return A string type ID (such as "::Module::Class"
),
* or an empty string if the compact ID is unknown.
**/
String resolve(int id);
}