* @param listener The listener configuration instance.
* @param listenerNode The target DOM ConfigTree listener element.
* @param model The model.
*/
protected static void mapDefaultAttributes(Listener listener, Element listenerNode, XMLBeansModel model) {
Service service = model.getService(listener);
boolean isGateway = XMLBeansModel.isGateway(listener);
if(listener instanceof DualListener) {
listenerNode.setAttribute(ListenerTagNames.MAX_THREADS_TAG, String.valueOf(((DualListener)listener).getMaxThreads()));
} else {
listenerNode.setAttribute(ListenerTagNames.MAX_THREADS_TAG, "1");
}
mapListenerServiceAttributes(listenerNode, service, isGateway);
if (!isGateway && !listenerNode.hasAttribute(ListenerTagNames.LISTENER_CLASS_TAG)) {
listenerNode.setAttribute(ListenerTagNames.LISTENER_CLASS_TAG, MessageAwareListener.class.getName());
}
ActionsDocument.Actions actions = service.getActions();
if(actions != null) {
MepType.Enum mep = actions.getMep();
if(mep != null) {
// Intentionally not setting a default of RequestResponse because the action pipeline
// has a "defaultProcessing" state that exists if the mep is not set (dubious??)....