org.jacorb.ir
Class RepositoryID

java.lang.Object
  extended byorg.jacorb.ir.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


Constructor Summary
RepositoryID()
           
 
Method Summary
static java.lang.String className(java.lang.String repId, java.lang.ClassLoader loader)
          Returns the fully qualified name of the Java class to which the given Repository ID is mapped.
static java.lang.String className(java.lang.String repId, java.lang.String suffix, java.lang.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(java.lang.String repId, java.lang.ClassLoader loader)
          Creates a BoxedValueHelper instance for a given repository ID.
static java.lang.String repId(java.lang.Class c)
           
static java.lang.String toRepositoryID(java.lang.String className, boolean resolveClass, java.lang.ClassLoader loader)
          Converts a class name to a Repository ID.
static java.lang.String toRepositoryID(java.lang.String className, java.lang.ClassLoader loader)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RepositoryID

public RepositoryID()
Method Detail

className

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


className

public static java.lang.String className(java.lang.String repId,
                                         java.lang.String suffix,
                                         java.lang.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.


repId

public static java.lang.String repId(java.lang.Class c)

toRepositoryID

public static java.lang.String toRepositoryID(java.lang.String className,
                                              boolean resolveClass,
                                              java.lang.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

toRepositoryID

public static java.lang.String toRepositoryID(java.lang.String className,
                                              java.lang.ClassLoader loader)

createBoxedValueHelper

public static BoxedValueHelper createBoxedValueHelper(java.lang.String repId,
                                                      java.lang.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:
java.lang.RuntimeException - if creation of the Helper instance fails