public class JavaTypeRepository extends java.lang.Object implements ITypeRepository
ITypeRepository that is wrapping the Java class loader.| Constructor and Description |
|---|
JavaTypeRepository(java.lang.ClassLoader classLoader)
Creates a new
JavaTypeRepository. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.ClassLoader |
getClassLoader()
Returns the
ClassLoader that is used to load Java classes. |
IType |
getEnumType(java.lang.String enumTypeName)
Returns the
IType representing the possible given enum constant. |
JavaType |
getType(java.lang.Class<?> javaClass)
Retrieves the external type for the given Java type.
|
JavaType |
getType(java.lang.String typeName)
Retrieves the external class for the given fully qualified class name.
|
TypeHelper |
getTypeHelper()
Returns a helper that gives access to the most common
types. |
public JavaTypeRepository(java.lang.ClassLoader classLoader)
JavaTypeRepository.classLoader - The repository used to access the application's classespublic java.lang.ClassLoader getClassLoader()
ClassLoader that is used to load Java classes.ClassLoader that is used to load Java classespublic IType getEnumType(java.lang.String enumTypeName)
IType representing the possible given enum constant. If the given value
does not represent an enum constant, then null is returned.getEnumType in interface ITypeRepositoryenumTypeName - The fully qualified enum type with the constantnull if none existspublic JavaType getType(java.lang.Class<?> javaClass)
getType in interface ITypeRepositoryjavaClass - The Java type to wrap with an external formpublic JavaType getType(java.lang.String typeName)
getType in interface ITypeRepositorytypeName - The fully qualified class name of the class to retrievepublic TypeHelper getTypeHelper()
types.getTypeHelper in interface ITypeRepositoryITypeEclipseLink 2.4.2, "build v20130514-5956486" API Reference