intarsys runtime library

de.intarsys.tools.adapter
Interface IAdapterFactory<B>

All Known Subinterfaces:
IAdapterOutlet
All Known Implementing Classes:
StandardAdapterOutlet

public interface IAdapterFactory<B>

A factory instance that can create an adapter object of type clazz on behalf of the object object.


Method Summary
<T> T
getAdapter(B object, Class<T> clazz)
          Return an object of type clazz that represents object.
 Class<B> getBaseType()
          The type of objects that can be adapted by this factory.
 

Method Detail

getAdapter

<T> T getAdapter(B object,
                 Class<T> clazz)
Return an object of type clazz that represents object.

This method should return null if adaption is not possible.

Type Parameters:
T -
Parameters:
object -
clazz -
Returns:
Return an object of type clazz that represents object.

getBaseType

Class<B> getBaseType()
The type of objects that can be adapted by this factory.

Returns:
The type of objects that can be adapted by this factory.

intarsys runtime library

Copyright © 2012 intarsys consulting GmbH. All Rights Reserved.