/** * If not already created, a new <code>jms-connection-factory</code> element will be created and returned. * Otherwise, the first existing <code>jms-connection-factory</code> element will be returned. * @return the instance defined for the element <code>jms-connection-factory</code> */ public JmsConnectionFactoryType<WebAppDescriptor> getOrCreateJmsConnectionFactory() { List<Node> nodeList = model.get("jms-connection-factory"); if (nodeList != null && nodeList.size() > 0) { return new JmsConnectionFactoryTypeImpl<WebAppDescriptor>(this, "jms-connection-factory", model, nodeList.get(0)); } return createJmsConnectionFactory(); }
/** * If not already created, a new <code>jms-connection-factory</code> element will be created and returned. * Otherwise, the first existing <code>jms-connection-factory</code> element will be returned. * @return the instance defined for the element <code>jms-connection-factory</code> */ public JmsConnectionFactoryType<WebAppDescriptor> getOrCreateJmsConnectionFactory() { List<Node> nodeList = model.get("jms-connection-factory"); if (nodeList != null && nodeList.size() > 0) { return new JmsConnectionFactoryTypeImpl<WebAppDescriptor>(this, "jms-connection-factory", model, nodeList.get(0)); } return createJmsConnectionFactory(); }