Package com._1c.g5.v8.dt.common
Class AdapterManager
- java.lang.Object
-
- com._1c.g5.v8.dt.common.AdapterManager
-
public class AdapterManager extends Object
-
-
Constructor Summary
Constructors Constructor Description AdapterManager()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> T
adapt(Object element, Class<T> type)
Returns an adapter of the specified type for the given object ornull
if none.
-
-
-
Method Detail
-
adapt
public static <T> T adapt(Object element, Class<T> type)
Returns an adapter of the specified type for the given object ornull
if none. The object itself is returned if it is an instance of the specified type. If the object is adaptable and does not subclassPlatformObject
, and does not provide the specified adapter directly, the platform's adapter manager is consulted for an adapter.- Parameters:
element
- element to retrieve adapter fortype
- adapter type- Returns:
- adapter or
null
-
-