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

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

  




 

 

Eclipse Rich Ajax Platform
Release 1.2

org.eclipse.rwt
Interface AdapterFactory


public interface AdapterFactory

An AdapterFactory creates the requested adapters associated with a given object, if available. Adapters are used to add dynamically interfaces to a class (behavioral extension).

AdapterFactories are registered with an global adapter manager.

Since:
1.0
See Also:
Adaptable

Method Summary
  Object getAdapter ( Object adaptable, Class adapter)
          returns an implementation of the given class associated with the given object.
  Class[] getAdapterList ()
          returns an array of adapter types handled by this factory.
 

Method Detail

getAdapter

public 
Object getAdapter(
Object adaptable,
                         
Class adapter)

returns an implementation of the given class associated with the given object. Returns null if no such implementation can be found.

Parameters:
adaptable - the Adaptable instance used as lookup key
adapter - the type of adapter to look up
Returns:
a object castable to the given adapter type or null if there is no adapter of the given type availabe

getAdapterList

public 
Class[] getAdapterList()

returns an array of adapter types handled by this factory.

This method is generally used to discover which adapter types are supported, in advance of actually calling getAdapter.

Returns:
a list of supported adapter types

Eclipse Rich Ajax Platform
Release 1.2

Copyright (c) Innoopract Informationssysteme GmbH and others 2002, 2008. All rights reserved.


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