public interface DriverData extends MutableAnnotations
MutableAnnotations
.
Note that only derivatives of HandlerBehaviour
can expect mutability
from the backing driver data instance; other behaviours must rely on
immutable Annotations
only.Modifier and Type | Method and Description |
---|---|
default <T extends Behaviour> |
behaviour(java.lang.Class<T> behaviourClass)
Returns the specified facet of behaviour to access the device data.
|
DeviceId |
deviceId()
Returns the device identifier.
|
Driver |
driver()
Returns the parent device driver.
|
clear, set
keys, value
Driver driver()
DeviceId deviceId()
default <T extends Behaviour> T behaviour(java.lang.Class<T> behaviourClass)
T
- type of behaviourbehaviourClass
- behaviour class