cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1305906 - /cxf/trunk/services/wsn/wsn-api/src/main/java/org/apache/cxf/wsn/client/NotificationBroker.java
Date Tue, 27 Mar 2012 17:13:10 GMT
Author: dkulp
Date: Tue Mar 27 17:13:10 2012
New Revision: 1305906

URL: http://svn.apache.org/viewvc?rev=1305906&view=rev
Log:
[CXF-4210] Add the extra classes to the constructor to simplify things

Modified:
    cxf/trunk/services/wsn/wsn-api/src/main/java/org/apache/cxf/wsn/client/NotificationBroker.java

Modified: cxf/trunk/services/wsn/wsn-api/src/main/java/org/apache/cxf/wsn/client/NotificationBroker.java
URL: http://svn.apache.org/viewvc/cxf/trunk/services/wsn/wsn-api/src/main/java/org/apache/cxf/wsn/client/NotificationBroker.java?rev=1305906&r1=1305905&r2=1305906&view=diff
==============================================================================
--- cxf/trunk/services/wsn/wsn-api/src/main/java/org/apache/cxf/wsn/client/NotificationBroker.java
(original)
+++ cxf/trunk/services/wsn/wsn-api/src/main/java/org/apache/cxf/wsn/client/NotificationBroker.java
Tue Mar 27 17:13:10 2012
@@ -75,14 +75,14 @@ public class NotificationBroker implemen
     private Class<?> extraClasses[];
     private JAXBContext context;
 
-    public NotificationBroker(String address) {
-        this(WSNHelper.getInstance().createWSA(address));
+    public NotificationBroker(String address, Class<?> ... cls) {
+        this(WSNHelper.getInstance().createWSA(address), cls);
     }
 
-    public NotificationBroker(W3CEndpointReference epr) {
+    public NotificationBroker(W3CEndpointReference epr, Class<?> ... cls) {
         this.epr = epr;
+        this.extraClasses = cls;
     }
-
     public void setExtraClasses(Class<?> ... c) {
         extraClasses = c;
     }



Mime
View raw message