org.apache.avalon.cornerstone.blocks.connection
Class DefaultConnectionManager

java.lang.Object
  extended byorg.apache.avalon.cornerstone.blocks.connection.AbstractConnectionManager
      extended byorg.apache.avalon.cornerstone.blocks.connection.DefaultConnectionManager
All Implemented Interfaces:
ConnectionManager, Disposable, LogEnabled, Serviceable

public class DefaultConnectionManager
extends AbstractConnectionManager
implements ConnectionManager, Serviceable, Disposable, LogEnabled

This is the service through which ConnectionManagement occurs.

Author:
Avalon Development Team

Field Summary
 
Fields inherited from class org.apache.avalon.cornerstone.blocks.connection.AbstractConnectionManager
m_threadManager, monitor
 
Fields inherited from interface org.apache.avalon.cornerstone.services.connection.ConnectionManager
ROLE
 
Constructor Summary
DefaultConnectionManager()
           
 
Method Summary
 void enableLogging(Logger logger)
          Provide component with a logger.
 void service(ServiceManager serviceManager)
          Pass the ServiceManager to the Serviceable.
 
Methods inherited from class org.apache.avalon.cornerstone.blocks.connection.AbstractConnectionManager
connect, connect, disconnect, disconnect, dispose
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.avalon.cornerstone.services.connection.ConnectionManager
connect, connect, disconnect, disconnect
 
Methods inherited from interface org.apache.avalon.framework.activity.Disposable
dispose
 

Constructor Detail

DefaultConnectionManager

public DefaultConnectionManager()
Method Detail

enableLogging

public void enableLogging(Logger logger)
Description copied from interface: LogEnabled
Provide component with a logger.

Specified by:
enableLogging in interface LogEnabled
Parameters:
logger - the logger. Must not be null.

service

public void service(ServiceManager serviceManager)
             throws ServiceException
Description copied from interface: Serviceable
Pass the ServiceManager to the Serviceable. The Serviceable implementation should use the specified ServiceManager to acquire the components it needs for execution.

Specified by:
service in interface Serviceable
Parameters:
serviceManager - The ServiceManager which this Serviceable uses. Must not be null.
Throws:
ServiceException - if an error occurs


Copyright © 1997-2005 The Apache Software Foundation. All Rights Reserved.