You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@labs.apache.org by be...@apache.org on 2008/05/07 07:46:11 UTC

svn commit: r653994 - in /labs/vysper/src/main: config/spring-config.xml java/org/apache/vysper/xmpp/server/ServerFeatures.java

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