@Test public void returnsJAXBContextForClass() throws Exception { assertNotNull(jaxbContextResolver.getJAXBContext(Book.class)); }
public JAXBContext getJAXBContext(Class<?> aClass) throws JAXBException { JAXBContext jaxbContext = jaxbContexts.get(aClass); if (jaxbContext == null) { jaxbContexts.putIfAbsent(aClass, JAXBContext.newInstance(aClass)); } return jaxbContexts.get(aClass); }
JAXBContextResolver implements ContextResolver<JAXBContextResolver> { public JAXBContext getJAXBContext(Class<?> aClass) throws JAXBException { JAXBContext jaxbContext = jaxbContexts.get(aClass); if (jaxbContext == null) { jaxbContexts.putIfAbsent(aClass, JAXBContext.newInstance(aClass)); } return jaxbContexts.get(aClass); } }
JAXBContextResolver implements ContextResolver<JAXBContextResolver> { public JAXBContext getJAXBContext(Class<?> aClass) throws JAXBException { JAXBContext jaxbContext = jaxbContexts.get(aClass); if (jaxbContext == null) { jaxbContexts.putIfAbsent(aClass, JAXBContext.newInstance(aClass)); } return jaxbContexts.get(aClass); }  }
JAXBContextResolver implements ContextResolver<JAXBContextResolver> { public JAXBContext getJAXBContext(Class<?> aClass) throws JAXBException { JAXBContext jaxbContext = jaxbContexts.get(aClass); if (jaxbContext == null) { jaxbContexts.putIfAbsent(aClass, JAXBContext.newInstance(aClass)); } return jaxbContexts.get(aClass); }  @Override JAXBContextResolver getContext(Class<?> type); JAXBContext getJAXBContext(Class<?> aClass); void addJAXBContext(JAXBContext jaxbContext, Class<?> aClass); void removeJAXBContext(Class<?> aClass); }
JAXBContextResolver implements ContextResolver<JAXBContextResolver> { public JAXBContext getJAXBContext(Class<?> aClass) throws JAXBException { JAXBContext jaxbContext = jaxbContexts.get(aClass); if (jaxbContext == null) { jaxbContexts.putIfAbsent(aClass, JAXBContext.newInstance(aClass)); } return jaxbContexts.get(aClass); }  @Override JAXBContextResolver getContext(Class<?> type); JAXBContext getJAXBContext(Class<?> aClass); void addJAXBContext(JAXBContext jaxbContext, Class<?> aClass); void removeJAXBContext(Class<?> aClass);  }