net.sourceforge.wurfl.core
Interface DeviceProvider

All Known Implementing Classes:
AbstractDeviceProvider, DefaultDeviceProvider

public interface DeviceProvider

Factory for Device instances.

Provide a method to get a Device from device identifier.

Version:
$Id: DeviceProvider.java 432 2010-05-06 12:12:53Z filippo.deluca $
Author:
Fantayeneh Asres Gizaw, Filippo De Luca

Method Summary
 Device getDevice(String id)
          Returns the device identified by given id.
 

Method Detail

getDevice

Device getDevice(String id)
                 throws DeviceNotDefinedException
Returns the device identified by given id.

Parameters:
id - The identifier
Returns:
Device instance identified by id.
Throws:
DeviceNotDefinedException - if Device with given identifier is not defined in WURFL.


Copyright © 2008-2010 WURFL-Pro srl. All Rights Reserved.