public class ObjectKeyMap extends Object
Constructor and Description |
---|
ObjectKeyMap(ORB orb) |
Modifier and Type | Method and Description |
---|---|
void |
addObjectKey(String key_name,
Object object) |
void |
addObjectKey(String key_name,
String full_path)
addObjectKey is a proprietary method that allows the
internal objectKeyMap to be altered programmatically. |
void |
configureObjectKeyMap(Configuration config)
a helper method supplied to initialize the object key map.
|
byte[] |
mapObjectKey(byte[] originalKey)
Map an object key to another, as defined by the value
of a corresponding configuration property in the properties
file, e.g.
|
public ObjectKeyMap(ORB orb)
public byte[] mapObjectKey(byte[] originalKey)
originalKey
- a byte[]
value containing the original
key.byte[]
value containing the mapped key, if a
mapping is defined, originalKey otherwise.public void configureObjectKeyMap(Configuration config)
public void addObjectKey(String key_name, String full_path)
addObjectKey
is a proprietary method that allows the
internal objectKeyMap to be altered programmatically. The objectKeyMap
allows more readable corbaloc URLs by mapping the actual object key to
an arbitary string. See the jacorb.properties file for more information.key_name
- a String
value e.g. NameServicefull_path
- an String
value e.g. file:/home/rnc/NameSingleton.iorpublic void addObjectKey(String key_name, Object object)
key_name
- a String
value e.g. NameServiceobject
- an a reference to a object whose object key should be used.addObjectKey(String, String)
Copyright © 2017 JacORB. All rights reserved.