Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 33683 invoked from network); 25 Nov 2009 21:08:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 25 Nov 2009 21:08:45 -0000 Received: (qmail 75035 invoked by uid 500); 25 Nov 2009 21:08:45 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 74848 invoked by uid 500); 25 Nov 2009 21:08:43 -0000 Mailing-List: contact axis-cvs-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-cvs@ws.apache.org Received: (qmail 74839 invoked by uid 500); 25 Nov 2009 21:08:43 -0000 Delivered-To: apmail-ws-axis2-cvs@ws.apache.org Received: (qmail 74836 invoked by uid 99); 25 Nov 2009 21:08:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Nov 2009 21:08:43 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Nov 2009 21:08:41 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 10B9223889BF; Wed, 25 Nov 2009 21:08:21 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r884274 - in /webservices/axis2/trunk/java/modules: jaxws-integration/test/org/apache/axis2/jaxws/misc/jaxbexclude/ jaxws/src/org/apache/axis2/jaxws/spi/ Date: Wed, 25 Nov 2009 21:08:20 -0000 To: axis2-cvs@ws.apache.org From: scheu@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20091125210821.10B9223889BF@eris.apache.org> Author: scheu Date: Wed Nov 25 21:08:20 2009 New Revision: 884274 URL: http://svn.apache.org/viewvc?rev=884274&view=rev Log: AXIs2-4562 Contributor:Rich Scheuerle To improve the performance of the initialization of a JAXBContext, exclude SessionBean objects from the calculation. Also provided a test. Added: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/misc/jaxbexclude/ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/misc/jaxbexclude/Bean.java webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/misc/jaxbexclude/Bean2.java webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/spi/JAXBExclude.java Added: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/misc/jaxbexclude/Bean.java URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/misc/jaxbexclude/Bean.java?rev=884274&view=auto ============================================================================== --- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/misc/jaxbexclude/Bean.java (added) +++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/misc/jaxbexclude/Bean.java Wed Nov 25 21:08:20 2009 @@ -0,0 +1,34 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.axis2.jaxws.misc.jaxbexclude; + +import org.apache.axis2.jaxws.spi.JAXBExclude; + +public class Bean implements JAXBExclude { + + private String _data; + + public Bean() {} + public String getData() { + return _data; + } + public void setData(String data) { + this._data = data; + } +} Added: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/misc/jaxbexclude/Bean2.java URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/misc/jaxbexclude/Bean2.java?rev=884274&view=auto ============================================================================== --- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/misc/jaxbexclude/Bean2.java (added) +++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/misc/jaxbexclude/Bean2.java Wed Nov 25 21:08:20 2009 @@ -0,0 +1,34 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.axis2.jaxws.misc.jaxbexclude; + +import org.apache.axis2.jaxws.spi.JAXBExclude; + +public class Bean2 extends Bean { + + private String _data2; + + public Bean2() {} + public String getData2() { + return _data2; + } + public void setData2(String data2) { + this._data2 = data2; + } +} Added: webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/spi/JAXBExclude.java URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/spi/JAXBExclude.java?rev=884274&view=auto ============================================================================== --- webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/spi/JAXBExclude.java (added) +++ webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/spi/JAXBExclude.java Wed Nov 25 21:08:20 2009 @@ -0,0 +1,28 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.axis2.jaxws.spi; + +/** + * Marker interface that can be used to identify classes that should + * be excluded from JAXB processing when JAX-WS constructs a + * JAXBContext. + */ +public interface JAXBExclude { + +}