public class DefaultDriverHandler extends Object implements DriverHandler
| Constructor and Description |
|---|
DefaultDriverHandler(DefaultDriverData data)
Creates new driver handler with the attached driver data.
|
| Modifier and Type | Method and Description |
|---|---|
<T extends Behaviour> |
behaviour(Class<T> behaviourClass)
Returns the specified facet of behaviour to interact with the device.
|
DriverData |
data()
Returns the device driver data.
|
Driver |
driver()
Returns the parent device driver.
|
String |
toString() |
public DefaultDriverHandler(DefaultDriverData data)
data - driver data to attachpublic Driver driver()
DriverHandlerdriver in interface DriverHandlerpublic DriverData data()
DriverHandlerdata in interface DriverHandlerpublic <T extends Behaviour> T behaviour(Class<T> behaviourClass)
DriverHandlerbehaviour in interface DriverHandlerT - type of behaviourbehaviourClass - behaviour classCopyright © 2015. All rights reserved.