diff options
author | Mark Spruiell <mes@zeroc.com> | 2002-05-02 03:27:07 +0000 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2002-05-02 03:27:07 +0000 |
commit | 5f342d668a30647b7d7182b4b296e65f7cfc2b07 (patch) | |
tree | 53f13aa7e79a77da4ca6133cf170812d3995d8b2 /java/src/IceInternal/TcpEndpointFactory.java | |
parent | adding assertions (diff) | |
download | ice-5f342d668a30647b7d7182b4b296e65f7cfc2b07.tar.bz2 ice-5f342d668a30647b7d7182b4b296e65f7cfc2b07.tar.xz ice-5f342d668a30647b7d7182b4b296e65f7cfc2b07.zip |
align with C++ changes for thread pool, properties, plug-ins
Diffstat (limited to 'java/src/IceInternal/TcpEndpointFactory.java')
-rw-r--r-- | java/src/IceInternal/TcpEndpointFactory.java | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/java/src/IceInternal/TcpEndpointFactory.java b/java/src/IceInternal/TcpEndpointFactory.java new file mode 100644 index 00000000000..0d941af639d --- /dev/null +++ b/java/src/IceInternal/TcpEndpointFactory.java @@ -0,0 +1,51 @@ +// ********************************************************************** +// +// Copyright (c) 2002 +// MutableRealms, Inc. +// Huntsville, AL, USA +// +// All Rights Reserved +// +// ********************************************************************** + +package IceInternal; + +final class TcpEndpointFactory implements EndpointFactory +{ + TcpEndpointFactory(Instance instance) + { + _instance = instance; + } + + public short + type() + { + return TcpEndpoint.TYPE; + } + + public String + protocol() + { + return "tcp"; + } + + public Endpoint + create(String str) + { + return new TcpEndpoint(_instance, str); + } + + public Endpoint + read(BasicStream s) + { + return new TcpEndpoint(s); + } + + public void + destroy() + { + _instance = null; + } + + private Instance _instance; +} |