public interface IAdaptable
Adaptable objects can be dynamically extended to provide different interfaces (or "adapters"). Adapters are created by adapter factories, which are in turn managed by type by adapter managers.For example,
IAdaptable a = [some adaptable]; IFoo x = Adapters.getAdapter(a, IFoo.class, true); if (x != null) [do IFoo things with x]
This interface can be used without OSGi running.
Clients may implement this interface, or obtain a default implementation
of this interface by subclassing
<T> T getAdapter(Class<T> adapter)
nullif no such object can be found.
Clients may implement this method but should generally call
Adapters.adapt(Object, Class, boolean)
rather than invoking it directly.
adapter- the adapter class to look up
nullif this object does not have an adapter for the given class
Copyright (c) 2000, 2016 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.