TYPE
- The type to be supported for publication and/or
subscription.public abstract class TypeSupport<TYPE> extends Object implements DDSObject
Constructor and Description |
---|
TypeSupport() |
Modifier and Type | Method and Description |
---|---|
abstract Class<TYPE> |
getType() |
abstract String |
getTypeName() |
abstract TYPE |
newData() |
static <TYPE> TypeSupport<TYPE> |
newTypeSupport(Class<TYPE> type,
ServiceEnvironment env)
Create a new TypeSupport object for the given physical type.
|
static <TYPE> TypeSupport<TYPE> |
newTypeSupport(Class<TYPE> type,
String registeredName,
ServiceEnvironment env)
Create a new TypeSupport object for the given physical type.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEnvironment
public static <TYPE> TypeSupport<TYPE> newTypeSupport(Class<TYPE> type, ServiceEnvironment env)
newTypeSupport(type, type.getClass().getName(), bootstrap)
public static <TYPE> TypeSupport<TYPE> newTypeSupport(Class<TYPE> type, String registeredName, ServiceEnvironment env)
TYPE
- The physical type of all samples read or written by
any DataReader
or
DataWriter
typed by the
resulting TypeSupport
.type
- The physical type of all samples read or written by
any DataReader
or
DataWriter
typed by the
resulting TypeSupport
.registeredName
- The logical name under which this type will
be registered with any
DomainParticipant
with which the resulting
TypeSupport
is used.env
- Identifies the Service instance to which the new
object will belong.TypeSupport
object, which can
subsequently be used to create one or more
Topic
s.newTypeSupport(Class, ServiceEnvironment)
public abstract TYPE newData()
public abstract Class<TYPE> getType()
public abstract String getTypeName()
Copyright © 2014. All rights reserved.