(String classname)
| 768 | |
| 769 | |
| 770 | protected Protocol createProtocol(String classname) throws Exception { |
| 771 | Class<? extends Protocol> clazz=Util.loadProtocolClass(classname, getClass()); |
| 772 | Protocol retval=clazz.getDeclaredConstructor().newInstance(); |
| 773 | if(retval == null) |
| 774 | throw new Exception("creation of instance for protocol " + classname + "failed"); |
| 775 | retval.setProtocolStack(this); |
| 776 | return retval; |
| 777 | } |
| 778 | |
| 779 | |
| 780 | public void init() throws Exception { |
no test coverage detected