public SecurityTokenServiceProvider() throws Exception { Set<Class<?>> classes = new HashSet<>(); classes.add(ObjectFactory.class); classes.add(org.apache.cxf.ws.security.sts.provider.model.wstrust14.ObjectFactory.class); CachedContextAndSchemas cache = JAXBContextCache.getCachedContextAndSchemas(classes, null, null, null, false); jaxbContext = cache.getContext(); jaxbContextClasses = cache.getClasses(); }
public SecurityTokenServiceProvider() throws Exception { Set<Class<?>> classes = new HashSet<>(); classes.add(ObjectFactory.class); classes.add(org.apache.cxf.ws.security.sts.provider.model.wstrust14.ObjectFactory.class); CachedContextAndSchemas cache = JAXBContextCache.getCachedContextAndSchemas(classes, null, null, null, false); jaxbContext = cache.getContext(); jaxbContextClasses = cache.getClasses(); }
JAXBContextCache.CachedContextAndSchemas ccs = JAXBContextCache.getCachedContextAndSchemas(tmp, null, null, null, false); jaxbClasses = ccs.getClasses(); jaxbContext = ccs.getContext(); } catch (JAXBException e) {
JAXBContextCache.CachedContextAndSchemas ccs = JAXBContextCache.getCachedContextAndSchemas(tmp, null, null, null, false); jaxbClasses = ccs.getClasses(); jaxbContext = ccs.getContext(); } catch (JAXBException e) {
/** * 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 (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 (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; }
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; }
private synchronized JAXBContext getContext() throws JAXBException { if (context == null || classes == null) { try { CachedContextAndSchemas ccs = JAXBContextCache.getCachedContextAndSchemas(typeClass); classes = ccs.getClasses(); context = ccs.getContext(); } catch (JAXBException e) { throw new RuntimeException(e); } } 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; }
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 synchronized JAXBContext getContext() throws JAXBException { if (context == null || classes == null) { try { CachedContextAndSchemas ccs = JAXBContextCache.getCachedContextAndSchemas(typeClass); classes = ccs.getClasses(); context = ccs.getContext(); } catch (JAXBException e) { throw new RuntimeException(e); } } return context; }
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 synchronized Marshaller createMarshaller() throws JAXBException { if (marshalContext == null || classes == null) { try { CachedContextAndSchemas ccs = JAXBContextCache.getCachedContextAndSchemas(typeClass); classes = ccs.getClasses(); marshalContext = ccs.getContext(); } catch (JAXBException e) { throw new RuntimeException(e); } } return marshalContext.createMarshaller(); }
private synchronized JAXBContext getContext() throws JAXBException { if (context == null || classes == null) { CachedContextAndSchemas ccs = JAXBContextCache.getCachedContextAndSchemas(type); classes = ccs.getClasses(); context = ccs.getContext(); } return context; }
private synchronized Unmarshaller createUnmarshaller() throws JAXBException { if (unmarshalContext == null || classes == null) { try { CachedContextAndSchemas ccs = JAXBContextCache.getCachedContextAndSchemas(extensionClass); classes = ccs.getClasses(); unmarshalContext = ccs.getContext(); } catch (JAXBException e) { throw new RuntimeException(e); } } return unmarshalContext.createUnmarshaller(); } private synchronized Marshaller createMarshaller() throws JAXBException {
private synchronized JAXBContext getContext() throws JAXBException { if (context == null || classes == null) { CachedContextAndSchemas ccs = JAXBContextCache.getCachedContextAndSchemas(data.getClass()); classes = ccs.getClasses(); context = ccs.getContext(); } return context; }
private synchronized JAXBContext getContext() throws JAXBException { if (context == null || classes == null) { CachedContextAndSchemas ccs = JAXBContextCache.getCachedContextAndSchemas(type); classes = ccs.getClasses(); context = ccs.getContext(); } return context; }
private synchronized JAXBContext getContext() throws JAXBException { if (context == null || classes == null) { CachedContextAndSchemas ccs = JAXBContextCache.getCachedContextAndSchemas(data.getClass()); classes = ccs.getClasses(); context = ccs.getContext(); } return context; }