Refine search
private Marshaller getMarshaller(Class type) throws JAXBException { final ContextResolver<Marshaller> resolver = mtMarshaller.get(); if (resolver != null) { Marshaller u = resolver.getContext(type); if (u != null) { return u; } } final JAXBContext ctx = getJAXBContext(type); if (ctx == null) { return null; } Marshaller m = ctx.createMarshaller(); if (formattedOutput.get()) { m.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, formattedOutput.get()); } return m; }
/** * Return {@link RuntimeResourceModel runtime resource model} based on this this resource model. * * @return Runtime resource model created from this resource model. */ public RuntimeResourceModel getRuntimeResourceModel() { return runtimeRootResourceModelValue.get(); } }
/** * Get the resource name. * <p/> * If the resource was constructed from a JAX-RS annotated resource class, * the resource name will be set to the {@link Class#getName() fully-qualified name} * of the resource class. * * @return reference JAX-RS resource handler class. */ public String getName() { return name.get(); }
private JAXBContext getJAXBContext(Class type) throws JAXBException { final ContextResolver<JAXBContext> resolver = mtContext.get(); if (resolver != null) { JAXBContext c = resolver.getContext(type); if (c != null) { return c; } } return getStoredJaxbContext(type); }
/** * Return {@link RuntimeResourceModel runtime resource model} based on this this resource model. * * @return Runtime resource model created from this resource model. */ public RuntimeResourceModel getRuntimeResourceModel() { return runtimeRootResourceModelValue.get(); } }
private JAXBContext getJAXBContext(Class type) throws JAXBException { final ContextResolver<JAXBContext> jaxbContextContextResolver = mtContext.get(); if (jaxbContextContextResolver != null) { JAXBContext c = jaxbContextContextResolver.getContext(type); if (c != null) { return c; } } return getStoredJAXBContext(type); }
/** * Get the resource name. * <p/> * If the resource was constructed from a JAX-RS annotated resource class, * the resource name will be set to the {@link Class#getName() fully-qualified name} * of the resource class. * * @return reference JAX-RS resource handler class. */ public String getName() { return name.get(); }
private Unmarshaller getUnmarshaller(Class type) throws JAXBException { final ContextResolver<Unmarshaller> resolver = mtUnmarshaller.get(); if (resolver != null) { Unmarshaller u = resolver.getContext(type); if (u != null) { return u; } } final JAXBContext ctx = getJAXBContext(type); return (ctx == null) ? null : ctx.createUnmarshaller(); }
@Override public ScheduledExecutorService getExecutorService() { return executorService.get(); }
/** * Get JAXB unmarshaller for the type. * * @param type Java type to be unmarshalled. * @return JAXB unmarshaller for the given type. * @throws JAXBException in case there's an error retrieving the unmarshaller. */ protected final Unmarshaller getUnmarshaller(Class type) throws JAXBException { final ContextResolver<Unmarshaller> unmarshallerContextResolver = mtUnmarshaller.get(); if (unmarshallerContextResolver != null) { Unmarshaller u = unmarshallerContextResolver.getContext(type); if (u != null) { return u; } } return getJAXBContext(type).createUnmarshaller(); }
@Override public ScheduledExecutorService getExecutorService() { return executorService.get(); }
Marshaller m = mcr.getContext(type); if (m != null) { return m; if (formattedOutput.get()) { m.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, formattedOutput.get());
private EagerValue(final Value<T> value) { this.result = value.get(); }
private Unmarshaller getUnmarshaller(Class type) throws JAXBException { final ContextResolver<Unmarshaller> resolver = mtUnmarshaller.get(); if (resolver != null) { Unmarshaller u = resolver.getContext(type); if (u != null) { return u; } } final JAXBContext ctx = getJAXBContext(type); return (ctx == null) ? null : ctx.createUnmarshaller(); }
protected boolean isXmlRootElementProcessing() { return xmlRootElementProcessing.get(); }
private JAXBContext getJAXBContext(Class type) throws JAXBException { final ContextResolver<JAXBContext> jaxbContextContextResolver = mtContext.get(); if (jaxbContextContextResolver != null) { JAXBContext c = jaxbContextContextResolver.getContext(type); if (c != null) { return c; } } return getStoredJAXBContext(type); }
private EagerValue(final Value<T> value) { this.result = value.get(); }
private JAXBContext getJAXBContext(Class type) throws JAXBException { final ContextResolver<JAXBContext> jaxbContextContextResolver = mtContext.get(); if (jaxbContextContextResolver != null) { JAXBContext c = jaxbContextContextResolver.getContext(type); if (c != null) { return c; } } return getStoredJAXBContext(type); }
protected boolean isFormattedOutput() { return formattedOutput.get(); }
private JAXBContext getJAXBContext(Class type) throws JAXBException { final ContextResolver<JAXBContext> resolver = mtContext.get(); if (resolver != null) { JAXBContext c = resolver.getContext(type); if (c != null) { return c; } } return getStoredJaxbContext(type); }