[jboss-cvs] JBossAS SVN: r68600 - projects/ejb3/trunk/ejb3-socket-inflow/src/main/java/org/jboss/ejb3/resource/adaptor/socket/inflow.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Thu Jan 3 09:38:47 EST 2008
Author: ALRubinger
Date: 2008-01-03 09:38:47 -0500 (Thu, 03 Jan 2008)
New Revision: 68600
Modified:
projects/ejb3/trunk/ejb3-socket-inflow/src/main/java/org/jboss/ejb3/resource/adaptor/socket/inflow/SocketActivationSpec.java
Log:
Refactored to clearer/simpler ActivationSpec property names
Modified: projects/ejb3/trunk/ejb3-socket-inflow/src/main/java/org/jboss/ejb3/resource/adaptor/socket/inflow/SocketActivationSpec.java
===================================================================
--- projects/ejb3/trunk/ejb3-socket-inflow/src/main/java/org/jboss/ejb3/resource/adaptor/socket/inflow/SocketActivationSpec.java 2008-01-03 14:22:55 UTC (rev 68599)
+++ projects/ejb3/trunk/ejb3-socket-inflow/src/main/java/org/jboss/ejb3/resource/adaptor/socket/inflow/SocketActivationSpec.java 2008-01-03 14:38:47 UTC (rev 68600)
@@ -54,12 +54,12 @@
private SocketResourceAdaptor resourceAdaptor;
/*
- * Address upon which to bind Server to listen for incoming AJAX Requests
+ * Address upon which to bind Server to listen for incoming Socket Requests
*/
- private String bindAddress;
+ private String host;
/*
- * Port upon which to bind Server to listen for incoming AJAX Requests
+ * Port upon which to bind Server to listen for incoming Socket Requests
*/
private int port;
@@ -72,9 +72,9 @@
public void validate() throws InvalidPropertyException
{
// Ensure Bind Address is Specified
- if (this.getBindAddress() == null || this.getBindAddress().equals(""))
+ if (this.getHost() == null || this.getHost().equals(""))
{
- throw new InvalidPropertyException("ActivationSpec Property 'bindAddress' is required");
+ throw new InvalidPropertyException("ActivationSpec Property 'host' is required");
}
// Ensure Port is specified
if (this.getPort() == 0)
@@ -107,7 +107,7 @@
}
// Create an InetSocketAddress to ensure binding is possible to properties specified
- InetSocketAddress address = new InetSocketAddress(this.getBindAddress(), this.getPort());
+ InetSocketAddress address = new InetSocketAddress(this.getHost(), this.getPort());
// Ensure binding succeeds
if (address.isUnresolved())
{
@@ -137,14 +137,14 @@
this.resourceAdaptor = resourceAdaptor;
}
- protected String getBindAddress()
+ protected String getHost()
{
- return bindAddress;
+ return host;
}
- protected void setBindAddress(String bindAddress)
+ protected void setHost(String host)
{
- this.bindAddress = bindAddress;
+ this.host = host;
}
protected int getPort()
More information about the jboss-cvs-commits
mailing list