Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.core.runtime
Interface IAdapterFactory


public interface IAdapterFactory

An adapter factory defines behavioral extensions for one or more classes that implements the IAdaptable interface. Adapter factories are registered with an adapter manager.

This interface can be used without OSGi running.

Clients may implement this interface.

See Also:
IAdapterManager, IAdaptable

Method Summary
  Object getAdapter ( Object adaptableObject, Class adapterType)
          Returns an object which is an instance of the given class associated with the given object.
  Class[] getAdapterList ()
          Returns the collection of adapter types handled by this factory.
 

Method Detail

getAdapter


Object getAdapter(
Object adaptableObject,
                  
Class adapterType)
Returns an object which is an instance of the given class associated with the given object. Returns null if no such object can be found.

Parameters:
adaptableObject - the adaptable object being queried (usually an instance of IAdaptable)
adapterType - the type of adapter to look up
Returns:
a object castable to the given adapter type, or null if this adapter factory does not have an adapter of the given type for the given object

getAdapterList


Class[] getAdapterList()
Returns the collection of adapter types handled by this factory.

This method is generally used by an adapter manager to discover which adapter types are supported, in advance of dispatching any actual getAdapter requests.

Returns:
the collection of adapter types

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire