/** * Returns the event type * * @return the event type */ public JavaType getType() { return (JavaType) super.getType(); } }
/** * Returns the event type * * @return the event type */ public JavaType getType() { return (JavaType) super.getType(); } }
private Class<?> getType(LogicalConsumer consumer) { Consumer<?> consumerDefinition = consumer.getDefinition(); return consumerDefinition.getType().getType(); }
private Class<?> getType(LogicalConsumer consumer) { Consumer<?> consumerDefinition = consumer.getDefinition(); return consumerDefinition.getType().getType(); }
public PhysicalConnectionSource generateConnectionSource(LogicalConsumer consumer, LogicalBinding<JmsBinding> binding, DeliveryType deliveryType) { JmsBindingMetadata metadata = binding.getDefinition().getJmsMetadata().snapshot(); SessionType sessionType = getSessionType(binding); JmsGeneratorHelper.generateDefaultFactoryConfiguration(metadata.getConnectionFactory(), sessionType); URI uri = consumer.getUri(); // set the client id specifier if (metadata.getSubscriptionId() == null && metadata.isDurable()) { String prefix = metadata.getSubscriptionIdPrefix() != null ? metadata.getSubscriptionIdPrefix() + "-" : ""; metadata.setSubscriptionId(prefix+JmsGeneratorHelper.getSubscriptionId(uri)); } String specifier = metadata.getSubscriptionId(); metadata.setSubscriptionId(specifier); metadata.getDestination().setType(DestinationType.TOPIC); // only use topics for channels Consumer<?> consumerDefinition = consumer.getDefinition(); DataType dataType = isJAXB(consumerDefinition.getType()) ? PhysicalDataTypes.JAXB : PhysicalDataTypes.JAVA_TYPE; JmsConnectionSource source = new JmsConnectionSource(uri, metadata, dataType, sessionType); if (provisioner != null) { provisioner.generateConnectionSource(source); } return source; }