Search in sources :

Example 1 with ConnectionFactoryAttribute

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;
}
Also used : PooledConnectionFactoryConfigProperties(org.wildfly.extension.messaging.activemq.jms.PooledConnectionFactoryConfigProperties) ConnectionFactoryAttribute(org.wildfly.extension.messaging.activemq.jms.ConnectionFactoryAttribute) ArrayList(java.util.ArrayList) Property(org.jboss.dmr.Property)

Aggregations

ArrayList (java.util.ArrayList)1 Property (org.jboss.dmr.Property)1 ConnectionFactoryAttribute (org.wildfly.extension.messaging.activemq.jms.ConnectionFactoryAttribute)1 PooledConnectionFactoryConfigProperties (org.wildfly.extension.messaging.activemq.jms.PooledConnectionFactoryConfigProperties)1