org.jacorb.ir

Class RepositoryID


public class RepositoryID
extends java.lang.Object

This class builds CORBA repository IDs from Java classes or class names, or builds Java class names from repository IDs

Method Summary

static String
className(String repId, ClassLoader loader)
Returns the fully qualified name of the Java class to which the given Repository ID is mapped.
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.
static BoxedValueHelper
createBoxedValueHelper(String repId, ClassLoader loader)
Creates a BoxedValueHelper instance for a given repository ID.
static String
repId(Class c)
static String
toRepositoryID(String className, ClassLoader loader)
static String
toRepositoryID(String className, boolean resolveClass, ClassLoader loader)
Converts a class name to a Repository ID.

Method Details

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


repId

public static String repId(Class c)


toRepositoryID

public static String toRepositoryID(String className,
                                    ClassLoader loader)


toRepositoryID

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

Parameters:
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