Class XJCJavaAnnotationImpl

  • All Implemented Interfaces:
    JavaAnnotation

    public class XJCJavaAnnotationImpl
    extends Object
    implements JavaAnnotation
    INTERNAL:

    Purpose: JavaAnnotation implementation wrapping XJC's JAnnotationUse. Used when bootstrapping a DynamicJAXBContext from an XML Schema.

    Responsibilities:

    • Provide Annotation information from the underlying JAnnotationUse.
    See Also:
    JavaAnnotation
    Since:
    EclipseLink 2.1
    • Constructor Detail

      • XJCJavaAnnotationImpl

        public XJCJavaAnnotationImpl​(com.sun.codemodel.JAnnotationUse annotation,
                                     DynamicClassLoader loader)
        Construct a new instance of XJCJavaAnnotationImpl.
        Parameters:
        annotation - - the XJC JAnnotationUse to be wrapped.
        loader - - the ClassLoader used to bootstrap the DynamicJAXBContext.
    • Method Detail

      • getJavaAnnotation

        public Annotation getJavaAnnotation()
        Return a Java Annotation representation of this JavaAnnotation.
        Returns:
        a Java Annotation representation of this JavaAnnotation.
      • getJavaAnnotationClass

        public Class<?> getJavaAnnotationClass()
        Return the Java Class of the Annotation represented by this JavaAnnotation.
        Returns:
        the Java Class of this JavaAnnotation's Annotation.