21 package org.opensplice.dds.type;
23 import java.util.Collection;
49 private final Class<TYPE> dataType;
50 private final String typeName;
52 @SuppressWarnings(
"unchecked")
54 Class<TYPE> dataType, String typeName) {
56 this.environment = environment;
57 this.dataType = dataType;
58 this.typeName = typeName;
60 String typeSupportName = dataType.getName() +
"TypeSupport";
65 oldTypeSupportClaz = (Class<? extends
org.
opensplice.
dds.dcps.TypeSupportImpl>) Class
66 .forName(typeSupportName);
67 this.oldTypeSupport = oldTypeSupportClaz.newInstance();
68 }
catch (ClassCastException e) {
71 "Allocating new TypeSupport failed. " 73 +
"' is not an instance of org.opensplice.dds.dcps.TypeSupportImpl.");
74 }
catch (InstantiationException e) {
76 "Allocating new TypeSupport failed. " + e.getMessage());
77 }
catch (IllegalAccessException e) {
79 "Allocating new TypeSupport failed. " + e.getMessage());
80 }
catch (ClassNotFoundException e) {
82 "Allocating new TypeSupport failed (" + typeSupportName
83 +
"); " + e.getMessage());
90 return this.environment;
96 return dataType.newInstance();
97 }
catch (InstantiationException e) {
99 "Unable to instantiate data; " + e.getMessage());
100 }
catch (IllegalAccessException e) {
102 "Unable to instantiate data; " + e.getMessage());
108 return this.dataType;
113 if (this.typeName != null) {
114 return this.typeName;
116 return oldTypeSupport.get_type_name();
121 return this.oldTypeSupport;
128 Collection<Class<? extends Status>> statuses) {
137 Collection<Class<? extends Status>> statuses) {
139 topicDescription, qos, listener, statuses);
145 Collection<Class<? extends Status>> statuses) {
147 this, qos, listener, statuses);
Since a org.omg.dds.sub.DataReader is a kind of org.omg.dds.core.Entity, it has the ability to have a...
ServiceEnvironment getEnvironment()
DDS.TypeSupport getOldTypeSupport()
AbstractDataWriter< TYPE > createDataWriter(PublisherImpl publisher, AbstractTopic< TYPE > topic, DataWriterQos qos, DataWriterListener< TYPE > listener, Collection< Class<? extends Status >> statuses)
AbstractDataReader< TYPE > createDataReader(SubscriberImpl subscriber, TopicDescriptionExt< TYPE > topicDescription, DataReaderQos qos, DataReaderListener< TYPE > listener, Collection< Class<? extends Status >> statuses)
Since org.omg.dds.topic.Topic is a kind of org.omg.dds.core.Entity, it has the ability to have an ass...
Since a org.omg.dds.pub.DataWriter is a kind of org.omg.dds.core.Entity, it has the ability to have a...
AbstractTopic< TYPE > createTopic(DomainParticipantImpl participant, String topicName, TopicQos qos, TopicListener< TYPE > listener, Collection< Class<? extends Status >> statuses)
DDS implementations are rooted in this class, a concrete subclass of which can be instantiated based ...
Status is the abstract root class for all communication status objects.