|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--org.openorb.util.NamingUtils
The functions in this class perform various translations on stringified CosNaming names.
| Method Summary | |
static String |
bindObjectToCorbalocService(ORB orb,
String name,
Object obj)
Bind the specified object at the CorbalocService. |
static boolean |
bindObjectToFileSystem(ORB orb,
String name,
Object obj)
"Bind" the object by writing the IOR into a file. |
static boolean |
bindObjectToNamingService(ORB orb,
String name,
Object obj,
boolean bNoNS,
org.apache.avalon.framework.logger.Logger logger)
Binds an object into the Naming Service or uses an alternative binding method. |
static boolean |
bindObjectToNamingService(ORB orb,
String name,
Object obj,
org.apache.avalon.framework.logger.Logger logger)
Binds an object into the Naming Service or uses an alternative binding method. |
static boolean |
checkAddress(String addr)
This function checks an address for the correct format. |
static String |
decodeRFC2396(String enc)
Decodes a RFC2396 encoded string. |
static boolean |
dynamicRebind(ORB orb,
String name,
Object obj)
This method binds the object under the specified name at the NamingService. |
static Object |
dynamicResolve(ORB orb,
String name)
This method tries to resolve an object from the NamingService. |
static Object |
dynamicStringToName(String name)
Convert a string to a org.omg.CosNaming.Name using Java reflection. |
static boolean |
dynamicUnbind(ORB orb,
String name)
This method tries to unbind an object from the NamingService. |
static String |
encodeRFC2396(String str)
Encodes a string according to RFC2396. |
static Object |
resolveObjectFromNamingService(ORB orb,
String name)
|
static Object |
resolveObjectFromNamingService(ORB orb,
String name,
boolean bNoNS)
|
static Object |
resolveObjectFromNamingService(ORB orb,
String name,
boolean bNoNS,
org.apache.avalon.framework.logger.Logger logger)
Resolve an object from the Naming Service or use an alternative lookup method. |
static String |
rirMapping(String rirName)
Provides a mapping between names passed to the method resolve_initial_references() and the lookup name for the NamingService. |
static boolean |
unbindObjectFromNamingService(ORB orb,
String name)
|
static boolean |
unbindObjectFromNamingService(ORB orb,
String name,
boolean bNoNS)
unbind an object from the Naming Service or delete the ior file from the file system. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String IR_ROOT_POA
public static final String IR_POA_CURRENT
public static final String IR_INTERFACE_REPOSITORY
public static final String IR_NAME_SERVICE
public static final String IR_TRADING_SERVICE
public static final String IR_SECURITY_CURRENT
public static final String IR_TRANSACTION_CURRENT
public static final String IR_DYN_ANY_FACTORY
public static final String IR_ORB_POLICY_MANAGER
public static final String IR_POLICY_CURRENT
public static final String IR_NOTIFICATION_SERVICE
public static final String IR_TYPED_NOTIFICATION_SERVICE
public static final String IR_CODEC_FACTORY
public static final String IR_PI_CURRENT
public static final String IR_COMPONENT_HOME_FINDER
public static final String IR_PSS
public static final String IR_CCS
public static final String IR_OTS
public static final String IR_EVENT_SERVICE
public static final String IR_PROPERTY_SERVICE
public static final String IR_SERVICE_TYPE_REPOSITORY
public static final String IR_TIME_SERVICE
public static final String ROOT_COS_CONTEXT
public static final String NS_NAME
public static final String NS_NAME_LONG
public static final String NAMING_CONTEXT_NAME
public static final String NAMING_CONTEXT_NAME_NS
public static final String CALLBACK_MANAGER_NAME
public static final String CALLBACK_MANAGER_NAME_NS
public static final String CCS_NAME
public static final String CCS_NAME_LONG
public static final String LOCK_SET_FACTORY_NAME
public static final String LOCK_SET_FACTORY_NAME_NS
public static final String EVENT_SERVICE_NAME
public static final String EVENT_SERVICE_NAME_LONG
public static final String EVENT_CHANNEL_FACTORY_NAME
public static final String EVENT_CHANNEL_FACTORY_NAME_NS
public static final String DEFAULT_EVENT_CHANNEL_NAME
public static final String DEFAULT_EVENT_CHANNEL_NAME_NS
public static final String NOTIFICATION_SERVICE_NAME
public static final String NOTIFICATION_SERVICE_NAME_LONG
public static final String NOTIFICATION_CHANNEL_FACTORY_NAME
public static final String NOTIFICATION_CHANNEL_FACTORY_NAME_NS
public static final String PSS_SERVICE_NAME
public static final String PSS_SERVICE_NAME_LONG
public static final String PSS_CONNECTOR_FACTORY_NAME
public static final String PSS_CONNECTOR_FACTORY_NAME_NS
public static final String PROPERTY_SERVICE_NAME
public static final String PROPERTY_SERVICE_NAME_LONG
public static final String PROPERTY_SET_FACTORY_NAME
public static final String PROPERTY_SET_FACTORY_NAME_NS
public static final String PROPERTY_SET_DEF_FACTORY_NAME
public static final String PROPERTY_SET_DEF_FACTORY_NAME_NS
public static final String TIME_SERVICE_NAME
public static final String TIME_SERVICE_NAME_LONG
public static final String TIME_SERVICE_NAME_NS
public static final String TIMER_EVENT_SERVICE_NAME
public static final String TIMER_EVENT_SERVICE_NAME_NS
public static final String TRADING_SERVICE_NAME
public static final String TRADING_SERVICE_NAME_LONG
public static final String TRADING_KERNEL_NAME
public static final String TRADING_KERNEL_NAME_NS
public static final String TRADING_SVC_TYPE_REPO_NAME
public static final String TRADING_SVC_TYPE_REPO_NAME_NS
public static final String OTS_NAME
public static final String OTS_NAME_LONG
public static final String TRANSACTION_FACTORY_NAME
public static final String TRANSACTION_FACTORY_NAME_NS
public static final String IR_NAME
public static final String IR_NAME_LONG
public static final String REPOSITORY_NAME
public static final String REPOSITORY_NAME_NS
| Method Detail |
public static String rirMapping(String rirName)
public static String encodeRFC2396(String str)
throws UnsupportedEncodingException
str - The string to encode.UnsupportedEncodingException - When the string can't be converted
into UTF-8 format.
public static String decodeRFC2396(String enc)
throws UnsupportedEncodingException
enc - The string to encode.UnsupportedEncodingException - NumberFormatException - public static boolean checkAddress(String addr)
addr - The address to check.
public static Object dynamicStringToName(String name)
throws Exception
name - The string to be converted into a org.omg.CosNaming.Name.Exception - Various reflection exceptions.
public static boolean dynamicRebind(ORB orb,
String name,
Object obj)
orb - The orb instance on which to resolve the "NameService" reference.name - The name under which to bind the object.obj - The object to bind.
public static Object dynamicResolve(ORB orb,
String name)
orb - The orb instance on which to resolve the "NameService" reference.name - The name under which to bind the object.
public static boolean dynamicUnbind(ORB orb,
String name)
orb - The orb instance on which to resolve the "NameService" reference.name - The name under which to bind the object.
public static String bindObjectToCorbalocService(ORB orb,
String name,
Object obj)
orb - The orb from which to get the CorbalocService.name - The name under which to bind the object.obj - The object to bind.
public static boolean bindObjectToNamingService(ORB orb,
String name,
Object obj,
org.apache.avalon.framework.logger.Logger logger)
orb - The orb instance to resolve the NamingService from.name - The name under which to bind the object in the NamingService.obj - The object to bind.logger - logger to use for logging
public static boolean bindObjectToNamingService(ORB orb,
String name,
Object obj,
boolean bNoNS,
org.apache.avalon.framework.logger.Logger logger)
orb - The orb instance to resolve the NamingService from.name - The name under which to bind the object in the NamingService.obj - The object to bind.bNoNS - Do not try to bind at the NamingService.logger - logger to use for logging
public static boolean bindObjectToFileSystem(ORB orb,
String name,
Object obj)
orb - The orb instance to resolve the NamingService from.name - The name under which to bind the object in the NamingService.obj - The object to bind.
public static Object resolveObjectFromNamingService(ORB orb,
String name)
resolveObjectFromNamingService(org.omg.CORBA.ORB,java.lang.String,boolean)
public static Object resolveObjectFromNamingService(ORB orb,
String name,
boolean bNoNS)
resolveObjectFromNamingService(org.omg.CORBA.ORB,java.lang.String,boolean,Logger)
public static Object resolveObjectFromNamingService(ORB orb,
String name,
boolean bNoNS,
org.apache.avalon.framework.logger.Logger logger)
orb - The orb instance to resolve the NamingService from.name - The name under which to bind the object in the NamingService.bNoNS - Do not try to resolve from the NamingService. This option is used for the
NamingService itself, because resolving the initial NamingService at the NamingService
wouldn't make any sense.
public static boolean unbindObjectFromNamingService(ORB orb,
String name)
unbindObjectFromNamingService(org.omg.CORBA.ORB,java.lang.String,boolean)
public static boolean unbindObjectFromNamingService(ORB orb,
String name,
boolean bNoNS)
orb - The orb instance to unbind the NamingService from.name - The name of the object to unbind from the NamingService.bNoNS - Do not try to unbind from the NamingService. This option is used for the
NamingService itself, because unbinding the initial NamingService from the NamingService
wouldn't make any sense.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||