Class OXMJavaModelImpl
- java.lang.Object
-
- org.eclipse.persistence.jaxb.javamodel.reflection.JavaModelImpl
-
- org.eclipse.persistence.jaxb.javamodel.oxm.OXMJavaModelImpl
-
- All Implemented Interfaces:
JavaModel
public class OXMJavaModelImpl extends JavaModelImpl implements JavaModel
INTERNAL:Purpose:
JavaModel
implementation backed by a collection of MOXY'sxmlmodel.JavaClasses
. Used when bootstrapping aDynamicJAXBContext
from XML Bindings.Responsibilities:
- Return a
JavaClass
based on aClass
orClass
name.
- See Also:
JavaModel
- Since:
- EclipseLink 2.2
-
-
Field Summary
-
Fields inherited from class org.eclipse.persistence.jaxb.javamodel.reflection.JavaModelImpl
classLoader
-
-
Constructor Summary
Constructors Constructor Description OXMJavaModelImpl(java.lang.ClassLoader loader, JavaClass[] javaClasses)
Construct a new instance ofOXMJavaModelImpl
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JavaClass
getClass(java.lang.Class<?> jClass)
Obtain theJavaClass
given the corresponding JavaClass
.JavaClass
getClass(java.lang.String className)
Obtain theJavaClass
given the corresponding JavaClass'
name.java.lang.ClassLoader
getClassLoader()
Returns thisJavaModel's
ClassLoader
.org.eclipse.persistence.internal.jaxb.JaxbClassLoader
getJaxbClassLoader()
Returns thisJavaModel's
JaxbClassLoader
, which should be the parentClassLoader
.-
Methods inherited from class org.eclipse.persistence.jaxb.javamodel.reflection.JavaModelImpl
getAnnotation, getAnnotationHelper, getCachedJavaClasses, hasXmlBindings, setHasXmlBindings, setMetadataCompletePackageMap
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.persistence.jaxb.javamodel.JavaModel
getAnnotation
-
-
-
-
Constructor Detail
-
OXMJavaModelImpl
public OXMJavaModelImpl(java.lang.ClassLoader loader, JavaClass[] javaClasses)
Construct a new instance ofOXMJavaModelImpl
.- Parameters:
loader
- - theClassLoader
used to bootstrap theDynamicJAXBContext
.javaClasses
- - an array ofJavaClasses
for which to generate mappings.
-
-
Method Detail
-
getClass
public JavaClass getClass(java.lang.Class<?> jClass)
Obtain theJavaClass
given the corresponding JavaClass
.- Specified by:
getClass
in interfaceJavaModel
- Overrides:
getClass
in classJavaModelImpl
- Parameters:
jClass
- - the JavaClass
to search for.- Returns:
- the
JavaClass
corresponding tojClass
.
-
getClass
public JavaClass getClass(java.lang.String className)
Obtain theJavaClass
given the corresponding JavaClass'
name.- Specified by:
getClass
in interfaceJavaModel
- Overrides:
getClass
in classJavaModelImpl
- Parameters:
className
- - the name of the JavaClass
to search for.- Returns:
- the
JavaClass
corresponding toclassName
.
-
getClassLoader
public java.lang.ClassLoader getClassLoader()
Returns thisJavaModel's
ClassLoader
.- Specified by:
getClassLoader
in interfaceJavaModel
- Overrides:
getClassLoader
in classJavaModelImpl
- Returns:
- the
ClassLoader
used by thisJavaModel
.
-
getJaxbClassLoader
public org.eclipse.persistence.internal.jaxb.JaxbClassLoader getJaxbClassLoader()
Returns thisJavaModel's
JaxbClassLoader
, which should be the parentClassLoader
.- Returns:
- the
JaxbClassLoader
used by thisJavaModel
.
-
-