Package de.intarsys.tools.adapter
Interface IAdapterFactory
- All Known Subinterfaces:
IAdapterOutlet
- All Known Implementing Classes:
StandardAdapterOutlet
public interface IAdapterFactory
A factory instance that can create an adapter object of type
clazz on behalf of the object object.-
Method Summary
Modifier and TypeMethodDescription<T> TgetAdapter(Object object, Class<T> clazz) Return an object of typeclazzthat representsobject.The type of objects that can be adapted by this factory.
-
Method Details
-
getAdapter
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
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.
-