org.jacorb.ir

Class RepositoryID

public class RepositoryID extends Object

This class builds CORBA repository IDs from Java classes or class names, or builds Java class names from repository IDs
Method Summary
static StringclassName(String repId, ClassLoader loader)
Returns the fully qualified name of the Java class to which the given Repository ID is mapped.
static StringclassName(String repId, String suffix, ClassLoader loader)
Returns the fully qualified name of the Java class to which the given Repository ID is mapped, with a given suffix appended to the class name.
static BoxedValueHelpercreateBoxedValueHelper(String repId, ClassLoader loader)
Creates a BoxedValueHelper instance for a given repository ID.
static StringrepId(Class c)
static StringtoRepositoryID(String className, boolean resolveClass, ClassLoader loader)
Converts a class name to a Repository ID.
static StringtoRepositoryID(String className, ClassLoader loader)

Method Detail

className

public static String className(String repId, ClassLoader loader)
Returns the fully qualified name of the Java class to which the given Repository ID is mapped.

className

public static String className(String repId, String suffix, ClassLoader loader)
Returns the fully qualified name of the Java class to which the given Repository ID is mapped, with a given suffix appended to the class name. For example, the string "Helper" can be used as the suffix to find the helper class for a given Repository ID.

createBoxedValueHelper

public static BoxedValueHelper createBoxedValueHelper(String repId, ClassLoader loader)
Creates a BoxedValueHelper instance for a given repository ID.

Parameters: repId the repository ID of the boxed value type

Returns: a newly created BoxedValueHelper, or null if no BoxedValueHelper class can be found for that ID

Throws: RuntimeException if creation of the Helper instance fails

repId

public static String repId(Class c)

toRepositoryID

public static String toRepositoryID(String className, boolean resolveClass, ClassLoader loader)
Converts a class name to a Repository ID.

Parameters: className the class name to convert resolveClass indicates whether the method should try to resolve and load the class. If true and the class could not be loaded, an IllegalArgumentException will be thrown

toRepositoryID

public static String toRepositoryID(String className, ClassLoader loader)