|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.avalon.cornerstone.blocks.sockets.DefaultSocketManager
Implementation of SocketManager.
| Field Summary | |
protected Configuration |
m_configuration
|
protected Context |
m_context
|
protected java.util.HashMap |
m_serverSockets
|
protected java.util.HashMap |
m_sockets
|
| Fields inherited from interface org.apache.avalon.cornerstone.services.sockets.SocketManager |
ROLE |
| Constructor Summary | |
DefaultSocketManager()
|
|
| Method Summary | |
void |
configure(Configuration configuration)
Configure the SocketManager. |
void |
contextualize(Context context)
Pass the Context to the component. |
protected java.lang.Object |
createFactory(java.lang.String name,
java.lang.String className,
Configuration configuration)
|
ServerSocketFactory |
getServerSocketFactory(java.lang.String name)
Retrieve a server socket factory by name. |
SocketFactory |
getSocketFactory(java.lang.String name)
Retrieve a client socket factory by name. |
void |
initialize()
Initialize the component. |
protected void |
setupClientSocketFactory(java.lang.String name,
java.lang.String className,
Configuration configuration)
|
protected void |
setupServerSocketFactory(java.lang.String name,
java.lang.String className,
Configuration configuration)
|
| Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected final java.util.HashMap m_serverSockets
protected final java.util.HashMap m_sockets
protected Context m_context
protected Configuration m_configuration
| Constructor Detail |
public DefaultSocketManager()
| Method Detail |
public void contextualize(Context context)
Contextualizable
contextualize in interface Contextualizablecontext - the context. Must not be null.
public void configure(Configuration configuration)
throws ConfigurationException
configure in interface Configurableconfiguration - the Configuration
ConfigurationException - if an error occurs
public void initialize()
throws java.lang.Exception
Initializable
initialize in interface Initializablejava.lang.Exception - if an error occurs
protected void setupServerSocketFactory(java.lang.String name,
java.lang.String className,
Configuration configuration)
throws java.lang.Exception
java.lang.Exception
protected void setupClientSocketFactory(java.lang.String name,
java.lang.String className,
Configuration configuration)
throws java.lang.Exception
java.lang.Exception
protected java.lang.Object createFactory(java.lang.String name,
java.lang.String className,
Configuration configuration)
throws java.lang.Exception
java.lang.Exception
public ServerSocketFactory getServerSocketFactory(java.lang.String name)
throws java.lang.Exception
getServerSocketFactory in interface SocketManagername - the name of server socket factory
java.lang.Exception - if server socket factory is not available
public SocketFactory getSocketFactory(java.lang.String name)
throws java.lang.Exception
getSocketFactory in interface SocketManagername - the name of client socket factory
java.lang.Exception - if socket factory is not available
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||