Return-Path: X-Original-To: apmail-cxf-issues-archive@www.apache.org Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 94C85110F5 for ; Mon, 7 Jul 2014 08:25:34 +0000 (UTC) Received: (qmail 32789 invoked by uid 500); 7 Jul 2014 08:25:34 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 32753 invoked by uid 500); 7 Jul 2014 08:25:34 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 32740 invoked by uid 99); 7 Jul 2014 08:25:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Jul 2014 08:25:34 +0000 Date: Mon, 7 Jul 2014 08:25:34 +0000 (UTC) From: "Vjacheslav Borisov (JIRA)" To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CXF-5854) Add property "refreshTemplates" to XSLTJaxbProvider MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Vjacheslav Borisov created CXF-5854: --------------------------------------- Summary: Add property "refreshTemplates" to XSLTJaxbProvider Key: CXF-5854 URL: https://issues.apache.org/jira/browse/CXF-5854 Project: CXF Issue Type: Improvement Components: JAX-RS Affects Versions: 3.0.0 Reporter: Vjacheslav Borisov Priority: Minor Netbeans has feature named "Deploy on save" http://wiki.netbeans.org/FaqDeployOnSave, which allows to compile classes and copy static resources to web root "on save". But this is not works with XSLTJaxbProvider, which caches internally its templates and XSLTJaxbProvider does not see changed resources. This can be "fixed" using parameter like "refreshTemplates", which, if set to true, cleans all loaded templates on each request. This can be useful and save lot of time in development environment. {code:title=XSLTJaxbProvider.java|borderStyle=solid} public class XSLTJaxbProvider extends JAXBElementProvider { public boolean isWriteable(Class type, Type genericType, Annotation[] anns, MediaType mt) { /* cut */ if (refreshTemplates) { annotationTemplates=new ConcurrentHashMap(); //refresh other types of templates } /* cut */ } } {code} -- This message was sent by Atlassian JIRA (v6.2#6252)