protected static void callAfterCreationHook(Protocol prot, String classname) throws Exception { if(classname == null || prot == null) return; Class<ProtocolHook> clazz=Util.loadClass(classname, prot.getClass()); ProtocolHook hook=clazz.newInstance(); hook.afterCreation(prot); }
protected static void callAfterCreationHook(Protocol prot, String classname) throws Exception { if(classname == null || prot == null) return; Class<ProtocolHook> clazz=Util.loadClass(classname, prot.getClass()); ProtocolHook hook=clazz.newInstance(); hook.afterCreation(prot); }