org.norther.tammi.core.net
Class AbstractSocketFactory<T>

java.lang.Object
  extended by org.norther.tammi.core.base.Adaptee
      extended by org.norther.tammi.core.base.DefaultObjectFactory<T>
          extended by org.norther.tammi.core.net.AbstractCommonFactory<T>
              extended by org.norther.tammi.core.net.AbstractSocketFactory<T>
Type Parameters:
T - the resource type.
All Implemented Interfaces:
Serializable, NotificationBroadcaster, NotificationEmitter, Manageable, MBeanDelegate, ObjectFactory<T>, CommonFactory<T>
Direct Known Subclasses:
DefaultServerSocketFactory, DefaultSocketFactory

public abstract class AbstractSocketFactory<T>
extends AbstractCommonFactory<T>

An abstract implementation of network socket CommonFactory.

Version:
$Id: AbstractSocketFactory.java,v 1.12 2009/09/28 15:08:44 cvsimp Exp $
Author:
Ilkka Priha
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.norther.tammi.core.net.AbstractCommonFactory
socketBacklog
 
Fields inherited from class org.norther.tammi.core.base.Adaptee
ADAPTEE_NOTIF_DESCRIPTION, ADAPTEE_NOTIFICATIONS
 
Constructor Summary
protected AbstractSocketFactory()
          Constructs a base socket factory.
 
Method Summary
protected  ServerSocketFactory getServerSocketFactory(String alias, String pswd)
          Gets the implementation of the server socket factory.
protected  SocketFactory getSocketFactory(String alias, String pswd)
          Gets the implementation of the socket factory.
 
Methods inherited from class org.norther.tammi.core.net.AbstractCommonFactory
createServerSocket, createSocket, getBacklog, getSoTimeout, isLoaderSupported, isReuseAddress, isSecure, setBacklog, setReuseAddress, setSoTimeout
 
Methods inherited from class org.norther.tammi.core.base.DefaultObjectFactory
getInstance, getInstance, getInstance, getInstance
 
Methods inherited from class org.norther.tammi.core.base.Adaptee
addAdaptee, addNotificationListener, getAttributeSupport, getBroker, getCanonicalName, getDomain, getFactory, getLoader, getLog, getLog, getMBean, getMBeanServer, getNotificationInfo, getObjectName, getRegistrationTime, getSequenceNumber, hasListeners, isRegistered, postmanaged, premanaged, removeNotificationListener, removeNotificationListener, sendNotification, sendNotification, sendNotification, sendNotification, unmanaged, unregister
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.norther.tammi.core.base.ObjectFactory
getInstance, getInstance, getInstance, getInstance
 

Constructor Detail

AbstractSocketFactory

protected AbstractSocketFactory()
Constructs a base socket factory.

Method Detail

getSocketFactory

protected SocketFactory getSocketFactory(String alias,
                                         String pswd)
                                  throws ConstructionException
Description copied from class: AbstractCommonFactory
Gets the implementation of the socket factory.

Specified by:
getSocketFactory in class AbstractCommonFactory<T>
Parameters:
alias - an optional key alias.
pswd - an optional key password.
Returns:
the factory.
Throws:
ConstructionException - if a resource is not available.

getServerSocketFactory

protected ServerSocketFactory getServerSocketFactory(String alias,
                                                     String pswd)
                                              throws ConstructionException
Description copied from class: AbstractCommonFactory
Gets the implementation of the server socket factory.

Specified by:
getServerSocketFactory in class AbstractCommonFactory<T>
Parameters:
alias - an optional key alias.
pswd - an optional key password.
Returns:
the factory.
Throws:
ConstructionException - if a resource is not available.


Copyright © 2004 The Norther Organization. All rights reserved.