[jboss-cvs] JBossRemoting/src/main/org/jboss/remoting ...

Ron Sigal ron_sigal at yahoo.com
Fri Oct 19 14:30:08 EDT 2007


  User: rsigal  
  Date: 07/10/19 14:30:08

  Added:       src/main/org/jboss/remoting  Tag: remoting_2_x
                        ServerConfiguration.java
  Log:
  JBREM-63:  New object which holds server configuration parameters.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.1   +121 -0    JBossRemoting/src/main/org/jboss/remoting/Attic/ServerConfiguration.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: ServerConfiguration.java
  ===================================================================
  RCS file: ServerConfiguration.java
  diff -N ServerConfiguration.java
  --- /dev/null	1 Jan 1970 00:00:00 -0000
  +++ ServerConfiguration.java	19 Oct 2007 18:30:07 -0000	1.1.2.1
  @@ -0,0 +1,121 @@
  +/*
  +* JBoss, Home of Professional Open Source
  +* Copyright 2005, JBoss Inc., and individual contributors as indicated
  +* by the @authors tag. See the copyright.txt in the distribution for a
  +* full listing of individual contributors.
  +*
  +* This is free software; you can redistribute it and/or modify it
  +* under the terms of the GNU Lesser General Public License as
  +* published by the Free Software Foundation; either version 2.1 of
  +* the License, or (at your option) any later version.
  +*
  +* This software is distributed in the hope that it will be useful,
  +* but WITHOUT ANY WARRANTY; without even the implied warranty of
  +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  +* Lesser General Public License for more details.
  +*
  +* You should have received a copy of the GNU Lesser General Public
  +* License along with this software; if not, write to the Free
  +* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  +* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
  +*/
  +package org.jboss.remoting;
  +
  +import java.util.HashMap;
  +import java.util.Map;
  +
  +
  +/** 
  + * ServerConfiguration can hold all parameters used to configure an
  + * org.jboss.remoting.transport.Connector.
  + * 
  + * Though it can be used programmatically, it is primarily meant to be used
  + * as a replacement for the <config> xml element currently used for external
  + * configuration of a Connector.  In particular, it is meant to be constructed
  + * by the microcontainer from a jboss-beans.xml file and injected into the
  + * Connector.
  + * 
  + * For an example of the use of ServerConfiguration with the microcontainer,
  + * see the org.jboss.test.remoting.configuration package in the testsuite
  + * directory of the JBoss Application Server 5.0.0.
  + * 
  + * @author <a href="ron.sigal at jboss.com">Ron Sigal</a>
  + * @version $Revision: 1.1.2.1 $
  + * <p>
  + * Copyright Oct 13, 2007
  + * </p>
  + */
  +public class ServerConfiguration
  +{
  +   /**
  +    * transport to be used by server.
  +    */
  +   private String  transport;
  +   
  +   /**
  +    * Parameters that will go into InvokerLocator.   
  +    * <p>
  +    * Values MUST be of String type.
  +    */
  +   private Map invokerLocatorParameters = new HashMap();
  +   
  +   /**
  +    * Parameters that will be used locally by the server and will not go
  +    * into InvokerLocator.
  +    * <p>
  +    * Values may be of any type.
  +    */
  +   private Map serverParameters = new HashMap();
  +   
  +   /**
  +    * ServerInvocationHandlers.  The key is used as the subsystem name.
  +    * It may also be a comma separated list of subsystem names.
  +    */
  +   private Map invocationHandlers = new HashMap();
  +  
  +   
  +   public ServerConfiguration(String transport)
  +   {
  +      this.transport = transport;
  +   }
  +   
  +   public Map getInvocationHandlers()
  +   {
  +      return invocationHandlers;
  +   }
  +
  +   public void setInvocationHandlers(Map invocationHandlers)
  +   {
  +      this.invocationHandlers = invocationHandlers;
  +   }
  +   
  +   public Map getInvokerLocatorParameters()
  +   {
  +      return invokerLocatorParameters;
  +   }
  +   
  +   public void setInvokerLocatorParameters(Map invokerLocatorParameters)
  +   {
  +      this.invokerLocatorParameters.putAll(invokerLocatorParameters);
  +   }
  +   
  +   public Map getServerParameters()
  +   {
  +      return serverParameters;
  +   }
  +   
  +   public void setServerParameters(Map serverParameters)
  +   {
  +      this.serverParameters.putAll(serverParameters);
  +   }
  +   
  +   public String getTransport()
  +   {
  +      return transport;
  +   }
  +
  +   public void setTransport(String transport)
  +   {
  +      this.transport = transport;
  +   }
  +}
  
  
  



More information about the jboss-cvs-commits mailing list