use of org.wildfly.extension.messaging.activemq.jms.ConnectionFactoryAttribute in project wildfly by wildfly.
the class JMSConnectionFactoryDefinitionInjectionSource method getAdapterParams.
private List<PooledConnectionFactoryConfigProperties> getAdapterParams(ModelNode model) {
Map<String, ConnectionFactoryAttribute> attributes = PooledConnectionFactoryDefinition.getAttributesMap();
List<PooledConnectionFactoryConfigProperties> props = new ArrayList<>();
for (Property property : model.asPropertyList()) {
ConnectionFactoryAttribute attribute = attributes.get(property.getName());
if (attribute.getPropertyName() == null) {
// not a RA property
continue;
}
props.add(new PooledConnectionFactoryConfigProperties(attribute.getPropertyName(), property.getValue().asString(), attribute.getClassType()));
}
return props;
}
Aggregations