org.araneaframework
Interface Narrowable

All Known Subinterfaces:
HttpInputData, HttpOutputData, InputData, OutputData
All Known Implementing Classes:
StandardServletInputData, StandardServletOutputData

public interface Narrowable

Provides objects with the capability of narrowing down to a specific implementation of an interface added with extend from Extendable.

Author:
"Toomas Römer" , Jevgeni Kabanov (ekabanov at araneaframework dot org)
See Also:
Extendable

Method Summary
 Object narrow(Class interfaceClass)
          Narrows down to the implementation of the interfaceClass, returns the object.
 

Method Detail

narrow

public Object narrow(Class interfaceClass)
Narrows down to the implementation of the interfaceClass, returns the object. Can be used after the extend(Class, Object); if the object implements Extendable.

Parameters:
interfaceClass - the interface of the implementation in need of
Returns:
the implementation of the interfaceClass