org.abstracthorizon.danube.adapter
Interface Adaptable

All Known Subinterfaces:
Connection, HTTPConnection, StreamConnection
All Known Implementing Classes:
AccessLogConnectionHandler.DateWrapper, ConnectionWrapper, HTTPConnectionImpl, LoggingConnection, SocketChannelConnection, SocketConnection

public interface Adaptable

This interface is inspired by similar from eclipse project

Author:
Daniel Sendula

Method Summary
<T> T
adapt(Class<T> cls)
          Returns an object that is instance of asked class
 

Method Detail

adapt

<T> T adapt(Class<T> cls)
Returns an object that is instance of asked class

Parameters:
cls - class to be adapted to
Returns:
an object that is instance of asked class


Copyright © 2005-2009 Abstract Horizon. All Rights Reserved.