|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.epics.pvmanager.TypeSupport<T>
public abstract class TypeSupport<T>
Implements the mechanism for registering different types so that the library knows how to handle them.
For a type to be usable by the library it needs to be defined:
Nested Class Summary | |
---|---|
static class |
TypeSupport.Notification<T>
|
Constructor Summary | |
---|---|
TypeSupport()
|
Method Summary | ||
---|---|---|
static
|
addTypeSupport(java.lang.Class<T> typeClass,
TypeSupport<T> typeSupport)
Adds support for a new type. |
|
static
|
notification(T oldValue,
T newValue)
Returns the final value by using the appropriate type support. |
|
abstract TypeSupport.Notification<T> |
prepareNotification(T oldValue,
T newValue)
Given the old and new value, prepare the final value that will be notified. |
|
static
|
timestampOf(T value)
Extracts the TimeStamp of the value using the appropriate type support. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TypeSupport()
Method Detail |
---|
public abstract TypeSupport.Notification<T> prepareNotification(T oldValue, T newValue)
oldValue
- the oldValue, which was previously in the previous notificationnewValue
- the newValue, which was computed during the scanning
public static <T> void addTypeSupport(java.lang.Class<T> typeClass, TypeSupport<T> typeSupport)
T
- the type to add support fortypeClass
- the class of the typetypeSupport
- the support for the typepublic static <T> TypeSupport.Notification<T> notification(T oldValue, T newValue)
T
- the type of the valueoldValue
- the oldValue, which was previously in the previous notificationnewValue
- the newValue, which was computed during the scanning
public static <T> TimeStamp timestampOf(T value)
T
- the type of the valuevalue
- the value from which to extract the timestamp
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |