|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.wurfl.core.AbstractDeviceProvider
net.sourceforge.wurfl.core.DefaultDeviceProvider
public class DefaultDeviceProvider
DeviceProvider default implementation.
It create DefaultDevices using the CapabilitiesHolderFactory and MarkupResolver. By default it uses DefaultCapabilitiesHolderFactory and DefaultMarkupResolver. Several constructors permit to customize the building procedure.
| Field Summary |
|---|
| Fields inherited from class net.sourceforge.wurfl.core.AbstractDeviceProvider |
|---|
model |
| Constructor Summary | |
|---|---|
DefaultDeviceProvider(WURFLModel model)
Create DefaultDeviceProvider by WURFLModel. |
|
DefaultDeviceProvider(WURFLModel model,
CapabilitiesHolderFactory capabilitiesHolderFactory)
Create DefaultDeviceProvider by WURFLModel and MarkupResolver. |
|
DefaultDeviceProvider(WURFLModel model,
CapabilitiesHolderFactory capabilitiesHolderFactory,
MarkupResolver markupResolver)
Create DefaultDeviceProvider by WURFLModel, CapabilitiesHolderFactory and MarkupResolver. |
|
DefaultDeviceProvider(WURFLModel model,
MarkupResolver markupResolver)
Create DefaultDeviceProvider by WURFLModel and MarkupResolver. |
|
| Method Summary | |
|---|---|
protected CapabilitiesHolder |
createCapabilitiesHolder(ModelDevice modelDevice)
Factory method to build CapabilityHolder instances. |
Device |
getDevice(String id)
Returns the device identified by given id. |
| Methods inherited from class net.sourceforge.wurfl.core.AbstractDeviceProvider |
|---|
getModelDevice |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultDeviceProvider(WURFLModel model,
CapabilitiesHolderFactory capabilitiesHolderFactory,
MarkupResolver markupResolver)
model - The WURFLModel used to obtain the root ModelDevice.capabilitiesHolderFactory - The CapabilitiesHolderFactory used to create
CapabilitiesHolder for the devices.markupResolver - The MarkupResolver used to initialize new devices.
public DefaultDeviceProvider(WURFLModel model,
CapabilitiesHolderFactory capabilitiesHolderFactory)
It uses DefaultMarkupResolver as MarkupResolver implementation.
model - The WURFLModel used to obtain the root
ModelDevice.markupResolver - The MarkupResolver used to initialize new devices.
public DefaultDeviceProvider(WURFLModel model,
MarkupResolver markupResolver)
It uses DefaultCapabilitiesHolderFactory as CapabilitiesHolderFactory implementation.
model - The WURFLModel used to obtain the root
ModelDevice.markupResolver - The MarkupResolver used to initialize new devices.public DefaultDeviceProvider(WURFLModel model)
It uses DefaultMarkupResolver as MarkupResolver implementation and DefaultCapabilitiesHolderFactory as CapabilitiesHolderFactory implementation.
model - The WURFLModel used to obtain the root ModelDevice.| Method Detail |
|---|
public Device getDevice(String id)
throws DeviceNotDefinedException
id - The identifier
DeviceNotDefinedException - if Device with given identifier is not defined in WURFL.protected CapabilitiesHolder createCapabilitiesHolder(ModelDevice modelDevice)
modelDevice - The ModelDevices root of the creating device.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||