private static synchronized JAXBContext createContextForEPR() throws JAXBException { Reference<JAXBContext> rctx = ADDRESSING_CONTEXT.get(); JAXBContext ctx = rctx.get(); if (ctx == null) { ctx = JAXBContextCache.getCachedContextAndSchemas(ADDRESSING_CLASSES, null, null, null, true).getContext(); ADDRESSING_CONTEXT.set(new SoftReference<JAXBContext>(ctx)); } return ctx; } private static JAXBContext getJAXBContextForEPR() throws JAXBException {
public static CachedContextAndSchemas getCachedContextAndSchemas(Class<?> cls) throws JAXBException { Set<Class<?>> classes = new HashSet<Class<?>>(); classes.add(cls); scanPackages(classes); return JAXBContextCache.getCachedContextAndSchemas(classes, null, null, null, false); }
public static CachedContextAndSchemas getCachedContextAndSchemas(Class<?> cls) throws JAXBException { Set<Class<?>> classes = new HashSet<Class<?>>(); classes.add(cls); scanPackages(classes); return JAXBContextCache.getCachedContextAndSchemas(classes, null, null, null, false); }
public static CachedContextAndSchemas getCachedContextAndSchemas(Class<?> ... cls) throws JAXBException { Set<Class<?>> classes = new HashSet<>(); for (Class<?> c : cls) { classes.add(c); } scanPackages(classes); return JAXBContextCache.getCachedContextAndSchemas(classes, null, null, null, false); }
private synchronized JAXBContext getJAXBContext() { if (jaxbContext == null) { try { jaxbContext = JAXBContextCache.getCachedContextAndSchemas(ObjectFactory.class).getContext(); } catch (JAXBException e) { throw new RuntimeException(e); } } return jaxbContext; } private synchronized ServiceImpl getService() {
public static CachedContextAndSchemas getCachedContextAndSchemas(Class<?> ... cls) throws JAXBException { Set<Class<?>> classes = new HashSet<>(); for (Class<?> c : cls) { classes.add(c); } scanPackages(classes); return JAXBContextCache.getCachedContextAndSchemas(classes, null, null, null, false); }
private static synchronized JAXBContext createContextForEPR() throws JAXBException { Reference<JAXBContext> rctx = ADDRESSING_CONTEXT.get(); JAXBContext ctx = rctx.get(); if (ctx == null) { ctx = JAXBContextCache.getCachedContextAndSchemas(ADDRESSING_CLASSES, null, null, null, true).getContext(); ADDRESSING_CONTEXT.set(new SoftReference<JAXBContext>(ctx)); } return ctx; } private static JAXBContext getJAXBContextForEPR() throws JAXBException {
private static synchronized JAXBContext createContextForEPR() throws JAXBException { Reference<JAXBContext> rctx = ADDRESSING_CONTEXT.get(); JAXBContext ctx = rctx.get(); if (ctx == null) { ctx = JAXBContextCache.getCachedContextAndSchemas(ADDRESSING_CLASSES, null, null, null, true).getContext(); ADDRESSING_CONTEXT.set(new SoftReference<JAXBContext>(ctx)); } return ctx; } private static JAXBContext getJAXBContextForEPR() throws JAXBException {
private static synchronized JAXBContext createContextForEPR() throws JAXBException { Reference<JAXBContext> rctx = ADDRESSING_CONTEXT.get(); JAXBContext ctx = rctx.get(); if (ctx == null) { ctx = JAXBContextCache.getCachedContextAndSchemas(ADDRESSING_CLASSES, null, null, null, true).getContext(); ADDRESSING_CONTEXT.set(new SoftReference<JAXBContext>(ctx)); } return ctx; } private static JAXBContext getJAXBContextForEPR() throws JAXBException {
private synchronized JAXBContext getJAXBContext() { if (jaxbContext == null) { try { jaxbContext = JAXBContextCache.getCachedContextAndSchemas(ObjectFactory.class).getContext(); } catch (JAXBException e) { throw new RuntimeException(e); } } return jaxbContext; } private synchronized ServiceImpl getService() {
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(); }
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(data.getClass()); 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 synchronized JAXBContext getContext() throws JAXBException { if (context == null || classes == null) { CachedContextAndSchemas ccs = JAXBContextCache.getCachedContextAndSchemas(type); classes = ccs.getClasses(); context = ccs.getContext(); } return context; }
WSDiscoveryProvider() { try { context = JAXBContextCache.getCachedContextAndSchemas(ObjectFactory.class).getContext(); } catch (JAXBException e) { e.printStackTrace(); } }
WSDiscoveryProvider() { try { context = JAXBContextCache.getCachedContextAndSchemas(ObjectFactory.class).getContext(); } catch (JAXBException e) { e.printStackTrace(); } }
private synchronized JAXBContext getContext() throws JAXBException { if (context == null || classes == null) { CachedContextAndSchemas ccs = JAXBContextCache.getCachedContextAndSchemas(type); classes = ccs.getClasses(); context = ccs.getContext(); } return context; }