public Object createMessageTransport ( String messageTransportType , Task task ) { MessageTransport messageTransport = this . getMessageTransport ( messageTransportType ) ; String className = null ; if ( messageTransport != null ) className = ( ( PropertiesField ) messageTransport . getField ( MessageTransport . PROPERTIES ) ) . getProperty ( "className" ) ; if ( className == null ) { String packageName = BaseMessageTransport . class . getPackage ( ) . getName ( ) ; className = packageName + ' ' + messageTransportType . toLowerCase ( ) + ' ' + messageTransportType + "MessageTransport" ; } BaseMessageTransport transport = ( BaseMessageTransport ) ClassServiceUtility . getClassService ( ) . makeObjectFromClassName ( className ) ; if ( transport != null ) transport . init ( task , null , null ) ; return transport ; }
Get the message transport for this type