cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r807815 - in /cxf/trunk/common/wstx-msv-validation/src/main: java/org/apache/cxf/wstx_msv_validation/WoodstoxValidationImpl.java resources/META-INF/cxf/cxf-extension-wstx-msv-validation.xml
Date Tue, 25 Aug 2009 21:38:09 GMT
Author: dkulp
Date: Tue Aug 25 21:38:09 2009
New Revision: 807815

URL: http://svn.apache.org/viewvc?rev=807815&view=rev
Log:
Lazy-init the msv_validator

Modified:
    cxf/trunk/common/wstx-msv-validation/src/main/java/org/apache/cxf/wstx_msv_validation/WoodstoxValidationImpl.java
    cxf/trunk/common/wstx-msv-validation/src/main/resources/META-INF/cxf/cxf-extension-wstx-msv-validation.xml

Modified: cxf/trunk/common/wstx-msv-validation/src/main/java/org/apache/cxf/wstx_msv_validation/WoodstoxValidationImpl.java
URL: http://svn.apache.org/viewvc/cxf/trunk/common/wstx-msv-validation/src/main/java/org/apache/cxf/wstx_msv_validation/WoodstoxValidationImpl.java?rev=807815&r1=807814&r2=807815&view=diff
==============================================================================
--- cxf/trunk/common/wstx-msv-validation/src/main/java/org/apache/cxf/wstx_msv_validation/WoodstoxValidationImpl.java
(original)
+++ cxf/trunk/common/wstx-msv-validation/src/main/java/org/apache/cxf/wstx_msv_validation/WoodstoxValidationImpl.java
Tue Aug 25 21:38:09 2009
@@ -22,13 +22,12 @@
 import java.util.logging.Level;
 import java.util.logging.Logger;
 
-import javax.annotation.PostConstruct;
-import javax.annotation.Resource;
 import javax.xml.stream.XMLStreamException;
 import javax.xml.stream.XMLStreamReader;
 import javax.xml.stream.XMLStreamWriter;
 
 import org.apache.cxf.Bus;
+import org.apache.cxf.common.injection.NoJSR250Annotations;
 import org.apache.cxf.common.logging.LogUtils;
 import org.apache.cxf.io.StaxValidationManager;
 import org.apache.cxf.service.model.ServiceInfo;
@@ -36,19 +35,16 @@
 /**
  * 
  */
+@NoJSR250Annotations
 public class WoodstoxValidationImpl implements StaxValidationManager {
     private static final Logger LOG = LogUtils.getL7dLogger(WoodstoxValidationImpl.class);
     
     private Bus bus;
     private Stax2ValidationUtils utils;
 
-    @Resource
-    public void setBus(Bus b) {
-        bus = b;
-    }
     
-    @PostConstruct
-    public void register() {
+    public WoodstoxValidationImpl(Bus b) {
+        bus = b;
         
         try {
             utils = new Stax2ValidationUtils();

Modified: cxf/trunk/common/wstx-msv-validation/src/main/resources/META-INF/cxf/cxf-extension-wstx-msv-validation.xml
URL: http://svn.apache.org/viewvc/cxf/trunk/common/wstx-msv-validation/src/main/resources/META-INF/cxf/cxf-extension-wstx-msv-validation.xml?rev=807815&r1=807814&r2=807815&view=diff
==============================================================================
--- cxf/trunk/common/wstx-msv-validation/src/main/resources/META-INF/cxf/cxf-extension-wstx-msv-validation.xml
(original)
+++ cxf/trunk/common/wstx-msv-validation/src/main/resources/META-INF/cxf/cxf-extension-wstx-msv-validation.xml
Tue Aug 25 21:38:09 2009
@@ -23,8 +23,8 @@
 
 	<bean id="org.apache.cxf.wstx_msv_validation.WoodstoxValidationImpl"
 		class="org.apache.cxf.wstx_msv_validation.WoodstoxValidationImpl"
-		>
-		<property name="bus" ref="cxf"/>
+		lazy-init="true">
+		<constructor-arg ref="cxf"/>
 	</bean>
 
 </beans>



Mime
View raw message