labs-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ber...@apache.org
Subject svn commit: r653994 - in /labs/vysper/src/main: config/spring-config.xml java/org/apache/vysper/xmpp/server/ServerFeatures.java
Date Wed, 07 May 2008 05:46:11 GMT
Author: berndf
Date: Tue May  6 22:46:10 2008
New Revision: 653994

URL: http://svn.apache.org/viewvc?rev=653994&view=rev
Log:
[vysper] make server features class setter-injection only (to avoid constructor parameter
permutation hell)

Modified:
    labs/vysper/src/main/config/spring-config.xml
    labs/vysper/src/main/java/org/apache/vysper/xmpp/server/ServerFeatures.java

Modified: labs/vysper/src/main/config/spring-config.xml
URL: http://svn.apache.org/viewvc/labs/vysper/src/main/config/spring-config.xml?rev=653994&r1=653993&r2=653994&view=diff
==============================================================================
--- labs/vysper/src/main/config/spring-config.xml (original)
+++ labs/vysper/src/main/config/spring-config.xml Tue May  6 22:46:10 2008
@@ -47,13 +47,13 @@
     <bean name="resourceRegistry" class="org.apache.vysper.xmpp.resourcebinding.ResourceRegistry"
/>
     
     <bean id="serverFeatures" class="org.apache.vysper.xmpp.server.ServerFeatures">
-        <constructor-arg value="true" />
         <property name="authenticationMethods">
             <list>
                 <bean class="org.apache.vysper.xmpp.authorization.Anonymous" />
                 <bean class="org.apache.vysper.xmpp.authorization.Plain" />
             </list>
         </property>
+        <property name="startTLSRequired" value="true"/>
     </bean>
     
     <bean id="server" class="org.apache.vysper.xmpp.server.DefaultServerRuntimeContext"
>

Modified: labs/vysper/src/main/java/org/apache/vysper/xmpp/server/ServerFeatures.java
URL: http://svn.apache.org/viewvc/labs/vysper/src/main/java/org/apache/vysper/xmpp/server/ServerFeatures.java?rev=653994&r1=653993&r2=653994&view=diff
==============================================================================
--- labs/vysper/src/main/java/org/apache/vysper/xmpp/server/ServerFeatures.java (original)
+++ labs/vysper/src/main/java/org/apache/vysper/xmpp/server/ServerFeatures.java Tue May  6
22:46:10 2008
@@ -50,10 +50,6 @@
         // default constructor
     }
 
-    public ServerFeatures(boolean startTLSRequired) {
-        this.startTLSRequired = startTLSRequired;
-    }
-
     public boolean isStartTLSRequired() {
         return startTLSRequired;
     }



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@labs.apache.org
For additional commands, e-mail: commits-help@labs.apache.org


Mime
View raw message