|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--org.openorb.util.ORBUtils
Contains common methods used by OpenORB modules.
| Field Summary | |
static int |
BUGFIX
|
static String |
COPYRIGHT
|
static String |
IOR_FILE_EXT
File extension of IOR files. |
static int |
MAJOR
|
static int |
MINOR
|
static String |
NAME
|
static String |
OPENORB_ORB_CLASS
OpenORB ORBClass value |
static String |
OPENORB_ORB_SINGLETON_CLASS
OpenORB ORBSingleton value |
static String |
OPENORB_PKG_PREFIX
OpenORB package prefix |
static String |
ORB_ARG_PREFIX
ORB Initialization options. |
static String |
ORB_CLASS_KEY
CORBA ORBClass property key |
static String[] |
ORB_FLAG_ARGS
CORBA 3.0 init flag options (without a value). |
static String |
ORB_SINGLETON_CLASS_KEY
CORBA ORBSingletonClass property key |
static String[] |
ORB_VALUE_ARGS
CORBA 3.0 init options with an additional value. |
static String |
URL_FILE_EXT
File extension of URL files. |
static String |
VERSION
|
static String |
YEAR
|
| Method Summary | |
static boolean |
checkAddress(String addr)
This function checks an address for the correct format. |
static ORB |
createORB(String[] args,
Properties props)
Create the ORB instance. |
static String[] |
extractNonORBArgs(String[] args)
Extract non ORB arguments from the command line option array. |
static String[] |
extractORBArgs(String[] args)
Extract ORB arguments from the command line option array. |
static String |
getIORFileName(String arg,
String name)
Given the --writeIORFile argument, figure out what the IOR filename should be. |
static String |
getLongFromShortName(String short_name)
Provides a mapping between service short and their long names. |
static String |
getShortNameFromClass(Class clz)
Extract the short name from the class name. |
static File |
getTemporaryDir(String firstDirName,
String subdirName)
Returns a temporary Directory. |
static String |
getVersionFromShortName(String short_name)
Provides a mapping between service short and the version number. |
static boolean |
isFlagArg(String arg)
Check whether the ORB init option is a single flag argument. |
static boolean |
isValueArg(String arg)
Check whether the ORB init option has an additional value argument. |
static void |
writeIORToFile(ORB orb,
String name,
Object obj)
Write the IOR to a file. |
static void |
writeIORToFileName(ORB orb,
String fileName,
Object obj)
Write the IOR to a given fileName. |
static void |
writeURLToFile(String name,
String url)
Write the URL to a file. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String ORB_CLASS_KEY
public static final String ORB_SINGLETON_CLASS_KEY
public static final String OPENORB_ORB_CLASS
public static final String OPENORB_ORB_SINGLETON_CLASS
public static final String ORB_ARG_PREFIX
public static final String[] ORB_FLAG_ARGS
public static final String[] ORB_VALUE_ARGS
public static final String IOR_FILE_EXT
public static final String URL_FILE_EXT
public static final int MAJOR
public static final int MINOR
public static final int BUGFIX
public static final String VERSION
public static final String NAME
public static final String YEAR
public static final String COPYRIGHT
public static final String OPENORB_PKG_PREFIX
| Method Detail |
public static boolean isFlagArg(String arg)
arg - The argument to check.public static boolean isValueArg(String arg)
arg - The argument to check.public static String[] extractORBArgs(String[] args)
args - The original argument array.public static String[] extractNonORBArgs(String[] args)
args - The original argument array.public static String getShortNameFromClass(Class clz)
clz - The OpenORB class from which to extract the short name.public static String getLongFromShortName(String short_name)
short_name - The short name of the service.public static String getVersionFromShortName(String short_name)
short_name - The short name of the service.public static boolean checkAddress(String addr)
addr - The address to check.
public static void writeURLToFile(String name,
String url)
name - name of the objecturl - url of the object
public static void writeIORToFile(ORB orb,
String name,
Object obj)
orb - ORBname - name of the objectobj - object whose IOR to write
public static String getIORFileName(String arg,
String name)
arg - can be either a directory or a full filenamename - object name used to create default IOR filename
public static void writeIORToFileName(ORB orb,
String fileName,
Object obj)
orb - ORBfileName - file nameobj - object whose IOR to write
public static File getTemporaryDir(String firstDirName,
String subdirName)
throws IOException
Tries the following locations in order:
IOException - occurs if unable to create temporary directory
public static ORB createORB(String[] args,
Properties props)
args - The ORB specific arguments.props - ORB properties. May be null.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||