public Collection<DOMSource> getSchemas() { CachedContextAndSchemasInternal i = ccas.get(); if (i != null) { return i.getSchemas(); } return null; }
public void setSchemas(Collection<DOMSource> schemas) { CachedContextAndSchemasInternal i = ccas.get(); if (i != null) { i.setSchemas(schemas); } }
context = cachedContextAndSchemasInternal.getContext(); if (context == null) { JAXBCONTEXT_CACHE.remove(cachedContextAndSchemasInternal.getClasses()); cachedContextAndSchemasInternal = null; } else { cachedContextAndSchemasInternal = new CachedContextAndSchemasInternal(context, classes); synchronized (JAXBCONTEXT_CACHE) { if (typeRefs == null || typeRefs.isEmpty()) {
context = cachedContextAndSchemasInternal.getContext(); if (context == null) { JAXBCONTEXT_CACHE.remove(cachedContextAndSchemasInternal.getClasses()); cachedContextAndSchemasInternal = null; } else { cachedContextAndSchemasInternal = new CachedContextAndSchemasInternal(context, classes); synchronized (JAXBCONTEXT_CACHE) { if (typeRefs == null || typeRefs.isEmpty()) {
context = cachedContextAndSchemasInternal.getContext(); if (context == null) { final Set<Class<?>> cls = cachedContextAndSchemasInternal.getClasses(); if (cls != null) { JAXBCONTEXT_CACHE.remove(cls); return new CachedContextAndSchemas(context, cachedContextAndSchemasInternal.getClasses(), cachedContextAndSchemasInternal); cachedContextAndSchemasInternal = new CachedContextAndSchemasInternal(context, classes); synchronized (JAXBCONTEXT_CACHE) { if (typeRefs == null || typeRefs.isEmpty()) {
context = cachedContextAndSchemasInternal.getContext(); if (context == null) { final Set<Class<?>> cls = cachedContextAndSchemasInternal.getClasses(); if (cls != null) { JAXBCONTEXT_CACHE.remove(cls); return new CachedContextAndSchemas(context, cachedContextAndSchemasInternal.getClasses(), cachedContextAndSchemasInternal); cachedContextAndSchemasInternal = new CachedContextAndSchemasInternal(context, classes); synchronized (JAXBCONTEXT_CACHE) { if (typeRefs == null || typeRefs.isEmpty()) {
public void setSchemas(Collection<DOMSource> schemas) { CachedContextAndSchemasInternal i = ccas.get(); if (i != null) { i.setSchemas(schemas); } }
public Collection<DOMSource> getSchemas() { CachedContextAndSchemasInternal i = ccas.get(); if (i != null) { return i.getSchemas(); } return null; }
public Collection<DOMSource> getSchemas() { CachedContextAndSchemasInternal i = ccas.get(); if (i != null) { return i.getSchemas(); } return null; }
public Collection<DOMSource> getSchemas() { CachedContextAndSchemasInternal i = ccas.get(); if (i != null) { return i.getSchemas(); } return null; }
public void setSchemas(Collection<DOMSource> schemas) { CachedContextAndSchemasInternal i = ccas.get(); if (i != null) { i.setSchemas(schemas); } }
private CachedContextAndSchemas(CachedContextAndSchemasInternal i) { this.context = i.getContext(); this.classes = i.getClasses(); ccas = new WeakReference<CachedContextAndSchemasInternal>(i); } public JAXBContext getContext() {
public void setSchemas(Collection<DOMSource> schemas) { CachedContextAndSchemasInternal i = ccas.get(); if (i != null) { i.setSchemas(schemas); } }
private CachedContextAndSchemas(CachedContextAndSchemasInternal i) { this.context = i.getContext(); this.classes = i.getClasses(); ccas = new WeakReference<CachedContextAndSchemasInternal>(i); } public JAXBContext getContext() {