public JAXBContextImpl build() throws JAXBException { // fool-proof if (this.defaultNsUri == null) { this.defaultNsUri = ""; } if (this.subclassReplacements == null) { this.subclassReplacements = Collections.emptyMap(); } if (this.annotationReader == null) { this.annotationReader = new RuntimeInlineAnnotationReader(); } if (this.typeRefs == null) { this.typeRefs = Collections.<TypeReference>emptyList(); } return new JAXBContextImpl(this); }
public JAXBContextImpl build() throws JAXBException { // fool-proof if (this.defaultNsUri == null) { this.defaultNsUri = ""; } if (this.subclassReplacements == null) { this.subclassReplacements = Collections.emptyMap(); } if (this.annotationReader == null) { this.annotationReader = new RuntimeInlineAnnotationReader(); } if (this.typeRefs == null) { this.typeRefs = Collections.<TypeReference>emptyList(); } return new JAXBContextImpl(this); }
/** * Creates a new JAXB model from classes represented in * <tt>java.lang.reflect</tt>. * <p> * This version reads annotations from the classes directly. * * @param errorHandler Receives errors found during the processing. * @return null if any error was reported during the processing. If no error * is reported, a non-null valid object. */ public static RuntimeTypeInfoSet create(JAXBContextImpl context, ErrorHandler errorHandler, Class... classes) { return create(context, new RuntimeInlineAnnotationReader(), errorHandler, classes); }
/** * Creates a new JAXB model from classes represented in * <tt>java.lang.reflect</tt>. * <p> * This version reads annotations from the classes directly. * * @param errorHandler Receives errors found during the processing. * @return null if any error was reported during the processing. If no error * is reported, a non-null valid object. */ public static RuntimeTypeInfoSet create(JAXBContextImpl context, ErrorHandler errorHandler, Class... classes) { return create(context, new RuntimeInlineAnnotationReader(), errorHandler, classes); }
public JAXBContextImpl build() throws JAXBException { // fool-proof if (this.defaultNsUri == null) { this.defaultNsUri = ""; } if (this.subclassReplacements == null) { this.subclassReplacements = Collections.emptyMap(); } if (this.annotationReader == null) { this.annotationReader = new RuntimeInlineAnnotationReader(); } if (this.typeRefs == null) { this.typeRefs = Collections.<TypeReference>emptyList(); } return new JAXBContextImpl(this); }
public JAXBContextImpl build() throws JAXBException { // fool-proof if (this.defaultNsUri == null) { this.defaultNsUri = ""; } if (this.subclassReplacements == null) { this.subclassReplacements = Collections.emptyMap(); } if (this.annotationReader == null) { this.annotationReader = new RuntimeInlineAnnotationReader(); } if (this.typeRefs == null) { this.typeRefs = Collections.<TypeReference>emptyList(); } return new JAXBContextImpl(this); }