|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.epics.pvmanager.TypeSupport<T>
T
- the type for which to add supportpublic 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:
Constructor Summary | |
---|---|
TypeSupport(java.lang.Class<T> type,
java.lang.Class<? extends TypeSupport> typeSupportFamily)
Creates a new type support of the given type |
Method Summary | ||
---|---|---|
static void |
addTypeSupport(TypeSupport<?> typeSupport)
Adds type support for the given class. |
|
protected static
|
findTypeSupportFor(java.lang.Class<? extends TypeSupport> supportFamily,
java.lang.Class<T> typeClass)
Calculates and caches the type support for a particular class, so that introspection does not occur at every call. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TypeSupport(java.lang.Class<T> type, java.lang.Class<? extends TypeSupport> typeSupportFamily)
type
- the type on which support is definedtypeSupportFamily
- the kind of support is being definedMethod Detail |
---|
public static void addTypeSupport(TypeSupport<?> typeSupport)
typeSupport
- the support to addprotected static <T> TypeSupport<T> findTypeSupportFor(java.lang.Class<? extends TypeSupport> supportFamily, java.lang.Class<T> typeClass)
T
- the type to retrieve support forsupportFamily
- the support family for which to find supporttypeClass
- the class of the type
java.lang.RuntimeException
- when no support could be identified
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |