Class AdapterManager

java.lang.Object
com._1c.g5.v8.dt.common.AdapterManager

public class AdapterManager extends Object
  • Constructor Details

    • AdapterManager

      public AdapterManager()
  • Method Details

    • adapt

      public static <T> T adapt(Object element, Class<T> type)
      Returns an adapter of the specified type for the given object or null if none. The object itself is returned if it is an instance of the specified type. If the object is adaptable and does not subclass PlatformObject, and does not provide the specified adapter directly, the platform's adapter manager is consulted for an adapter.
      Parameters:
      element - element to retrieve adapter for
      type - adapter type
      Returns:
      adapter or null