Package de.intarsys.tools.adapter
Interface IAdapterFactory
-
- All Known Subinterfaces:
IAdapterOutlet
- All Known Implementing Classes:
StandardAdapterOutlet
public interface IAdapterFactoryA factory instance that can create an adapter object of typeclazzon behalf of the objectobject.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> TgetAdapter(java.lang.Object object, java.lang.Class<T> clazz)Return an object of typeclazzthat representsobject.java.lang.ClassgetBaseType()The type of objects that can be adapted by this factory.
-
-
-
Method Detail
-
getAdapter
<T> T getAdapter(java.lang.Object object, java.lang.Class<T> clazz)Return an object of typeclazzthat representsobject.This method should return
nullif adaption is not possible.- Type Parameters:
T-- Parameters:
object-clazz-- Returns:
- Return an object of type
clazzthat representsobject.
-
getBaseType
java.lang.Class getBaseType()
The type of objects that can be adapted by this factory.- Returns:
- The type of objects that can be adapted by this factory.
-
-