/** * Creates a pooled marshaller wrapping the given one. * Callers shall invoke {@link #reset(Pooled)} after construction for completing the initialization. * * @param marshaller the marshaller to use for the actual work. * @param template the {@link PooledTemplate} from which to get the initial values. * @throws JAXBException if an error occurred while setting a property. */ PooledMarshaller(final Marshaller marshaller, final Pooled template) throws JAXBException { super(template); this.marshaller = marshaller; initialize(template); }
/** * Creates a pooled marshaller wrapping the given one. * Callers shall invoke {@link #reset(Pooled)} after construction for completing the initialization. * * @param marshaller the marshaller to use for the actual work. * @param template the {@link PooledTemplate} from which to get the initial values. * @throws JAXBException if an error occurred while setting a property. */ PooledMarshaller(final Marshaller marshaller, final Pooled template) throws JAXBException { super(template); this.marshaller = marshaller; initialize(template); }