MCPcopy Create free account
hub / github.com/belaban/JGroups / createProtocol

Method createProtocol

src/org/jgroups/stack/ProtocolStack.java:770–777  ·  view source on GitHub ↗
(String classname)

Source from the content-addressed store, hash-verified

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 {

Callers 1

handleProbeMethod · 0.95

Calls 2

loadProtocolClassMethod · 0.95
setProtocolStackMethod · 0.95

Tested by

no test coverage detected