public interface AdapterManager
AdapterManager
interface defines a service for the platform
for adapting instances of a given object to a given target type.
Note: this interface is not intended to be implemented outside of the IDE framework. This interface is in early development and any external dependency risks being broken by future revisions. YOU HAVE BEEN WARNED!
Modifier and Type | Interface and Description |
---|---|
static class |
AdapterManager.Factory
The
AdapterManager.Factory class is used to get an implementation
of the AdapterManager service. |
Modifier and Type | Method and Description |
---|---|
<T> T |
adapt(java.lang.Object adaptable,
java.lang.Class<T> targetType)
Adapt the given object to the given target type.
|
void |
registerFactory(AdapterFactory factory)
Register the given factory.
|
void |
unregisterFactory(AdapterFactory factory)
Unregister the given factory.
|
<T> T adapt(java.lang.Object adaptable, java.lang.Class<T> targetType)
T
- the type of the target classadaptable
- the object instance to be adaptedtargetType
- the class of the target typenull
if the given object could not be adaptedvoid registerFactory(AdapterFactory factory)
factory
- void unregisterFactory(AdapterFactory factory)
factory
-