Biblioteca Java - Blame information for rev 31

Subversion Repositories:
Rev:
Rev Author Line No. Line
31 mihai 1 package com.linkscreens.activemq.protocol;
2  
3 /**
4  * Created by evo2 on 7/29/2015.
5  */
6 public class MessageProtocolFactory {
7     public static MessageProtocol GetMessageProtocol(ProtocolType type){
8         switch (type) {
9             case ECHO:
10                 return new EchoMessageProtocol();
11             case DUMMY:
12                 return new DummyMessageProtocol();
13             default:
14                 throw new IllegalArgumentException("Unknown protocol type speciffied.");
15         }
16  
17     }
18  
19 }