/** * Retrieve a JAXBContext for marshalling and unmarshalling JAXB generated * types. * * @return a JAXBContext */ public static JAXBContext getJAXBContext() throws JAXBException { synchronized (ContextJAXBUtils.class) { if (jaxbContext == null || jaxbContextClasses == null) { Set<Class<?>> tmp = new HashSet<>(); JAXBContextCache.addPackage(tmp, ContextUtils.WSA_OBJECT_FACTORY.getClass().getPackage().getName(), ContextUtils.WSA_OBJECT_FACTORY.getClass().getClassLoader()); JAXBContextCache.scanPackages(tmp); CachedContextAndSchemas ccs = JAXBContextCache.getCachedContextAndSchemas(tmp, null, null, null, false); jaxbContextClasses = ccs.getClasses(); jaxbContext = ccs.getContext(); } } return jaxbContext; }
/** * Retrieve a JAXBContext for marshalling and unmarshalling JAXB generated * types. * * @return a JAXBContext */ public static JAXBContext getJAXBContext() throws JAXBException { synchronized (ContextUtils.class) { if (jaxbContext == null || jaxbContextClasses == null) { Set<Class<?>> tmp = new HashSet<Class<?>>(); JAXBContextCache.addPackage(tmp, WSA_OBJECT_FACTORY.getClass().getPackage().getName(), WSA_OBJECT_FACTORY.getClass().getClassLoader()); JAXBContextCache.scanPackages(tmp); CachedContextAndSchemas ccs = JAXBContextCache.getCachedContextAndSchemas(tmp, null, null, null, false); jaxbContextClasses = ccs.getClasses(); jaxbContext = ccs.getContext(); } } return jaxbContext; }
/** * Retrieve a JAXBContext for marshalling and unmarshalling JAXB generated * types. * * @return a JAXBContext */ public static JAXBContext getJAXBContext() throws JAXBException { synchronized (ContextJAXBUtils.class) { if (jaxbContext == null || jaxbContextClasses == null) { Set<Class<?>> tmp = new HashSet<>(); JAXBContextCache.addPackage(tmp, ContextUtils.WSA_OBJECT_FACTORY.getClass().getPackage().getName(), ContextUtils.WSA_OBJECT_FACTORY.getClass().getClassLoader()); JAXBContextCache.scanPackages(tmp); CachedContextAndSchemas ccs = JAXBContextCache.getCachedContextAndSchemas(tmp, null, null, null, false); jaxbContextClasses = ccs.getClasses(); jaxbContext = ccs.getContext(); } } return jaxbContext; }
/** * Retrieve a JAXBContext for marshalling and unmarshalling JAXB generated * types. * * @return a JAXBContext */ public static JAXBContext getJAXBContext() throws JAXBException { synchronized (ContextUtils.class) { if (jaxbContext == null || jaxbContextClasses == null) { Set<Class<?>> tmp = new HashSet<Class<?>>(); JAXBContextCache.addPackage(tmp, WSA_OBJECT_FACTORY.getClass().getPackage().getName(), WSA_OBJECT_FACTORY.getClass().getClassLoader()); JAXBContextCache.scanPackages(tmp); CachedContextAndSchemas ccs = JAXBContextCache.getCachedContextAndSchemas(tmp, null, null, null, false); jaxbContextClasses = ccs.getClasses(); jaxbContext = ccs.getContext(); } } return jaxbContext; }
tmp.addAll(jaxbClasses); JAXBContextCache.addPackage(tmp, PackageUtils.getPackageName(cls), cls == null ? getClass().getClassLoader() : cls.getClassLoader()); if (cls != null) {
tmp.addAll(jaxbClasses); JAXBContextCache.addPackage(tmp, PackageUtils.getPackageName(cls), cls == null ? getClass().getClassLoader() : cls.getClassLoader()); if (cls != null) {
private static synchronized JAXBContext getContext() throws JAXBException { if (context == null || classes == null) { Set<Class<?>> c2 = new HashSet<>(); JAXBContextCache.addPackage(c2, PackageUtils.getPackageName(TLSClientParametersType.class), TLSClientParametersConfig.class.getClassLoader()); CachedContextAndSchemas ccs = JAXBContextCache.getCachedContextAndSchemas(c2, null, null, null, false); classes = ccs.getClasses(); context = ccs.getContext(); } return context; }
private static synchronized JAXBContext getContext() throws JAXBException { if (context == null || classes == null) { Set<Class<?>> c2 = new HashSet<Class<?>>(); JAXBContextCache.addPackage(c2, PackageUtils.getPackageName(TLSClientParametersType.class), TLSClientParametersConfig.class.getClassLoader()); CachedContextAndSchemas ccs = JAXBContextCache.getCachedContextAndSchemas(c2, null, null, null, false); classes = ccs.getClasses(); context = ccs.getContext(); } return context; }
tmp.addAll(jaxbClasses); JAXBContextCache.addPackage(tmp, PackageUtils.getPackageName(cls), cls == null ? getClass().getClassLoader() : cls.getClassLoader()); if (cls != null) {
tmp.addAll(jaxbClasses); JAXBContextCache.addPackage(tmp, PackageUtils.getPackageName(cls), cls == null ? getClass().getClassLoader() : cls.getClassLoader()); if (cls != null) {
private static synchronized JAXBContext getContext() throws JAXBException { if (context == null || classes == null) { Set<Class<?>> c2 = new HashSet<>(); JAXBContextCache.addPackage(c2, PackageUtils.getPackageName(TLSClientParametersType.class), TLSClientParametersConfig.class.getClassLoader()); CachedContextAndSchemas ccs = JAXBContextCache.getCachedContextAndSchemas(c2, null, null, null, false); classes = ccs.getClasses(); context = ccs.getContext(); } return context; }
tmp.addAll(classes); JAXBContextCache.addPackage(tmp, getJaxbPackage(), cls == null ? getClass().getClassLoader()
tmp.addAll(jaxbClasses); JAXBContextCache.addPackage(tmp, PackageUtils.getPackageName(cls), cls == null ? getClass().getClassLoader()
tmp.addAll(jaxbClasses); JAXBContextCache.addPackage(tmp, PackageUtils.getPackageName(cls), cls == null ? getClass().getClassLoader() : cls.getClassLoader()); if (cls != null) {
tmp.addAll(classes); JAXBContextCache.addPackage(tmp, getJaxbPackage(), cls == null ? getClass().getClassLoader()
private static synchronized JAXBContext getContext() throws JAXBException { if (context == null || classes == null) { Set<Class<?>> c2 = new HashSet<Class<?>>(); JAXBContextCache.addPackage(c2, PackageUtils.getPackageName(TLSClientParametersType.class), TLSClientParametersConfig.class.getClassLoader()); CachedContextAndSchemas ccs = JAXBContextCache.getCachedContextAndSchemas(c2, null, null, null, false); classes = ccs.getClasses(); context = ccs.getContext(); } return context; }
tmp.addAll(jaxbClasses); JAXBContextCache.addPackage(tmp, PackageUtils.getPackageName(cls), cls == null ? getClass().getClassLoader() : cls.getClassLoader()); if (cls != null) {
tmp.addAll(jaxbClasses); JAXBContextCache.addPackage(tmp, PackageUtils.getPackageName(cls), cls == null ? getClass().getClassLoader()
tmp.addAll(jaxbClasses); JAXBContextCache.addPackage(tmp, PackageUtils.getPackageName(cls), cls == null ? getClass().getClassLoader() : cls.getClassLoader()); if (cls != null) {
tmp.addAll(jaxbClasses); JAXBContextCache.addPackage(tmp, PackageUtils.getPackageName(cls), cls == null ? getClass().getClassLoader()