public BaseRequestHandler loadHandler(String handlerClassName, String uri)
      throws
      ClassNotFoundException, NoSuchMethodException, IllegalAccessException,
      InvocationTargetException, InstantiationException {
    Class<? extends BaseRequestHandler> handlerClass =
        classLoader.loadClass(handlerClassName).asSubclass(BaseRequestHandler.class);
    Constructor<? extends BaseRequestHandler> constructor =
        handlerClass.getConstructor(String.class);
    return constructor.newInstance(uri);
  }
public BaseRequestHandler loadHandler ( String handlerClassName , String uri ) throws ClassNotFoundException , NoSuchMethodException , IllegalAccessException , InvocationTargetException , InstantiationException { Class < ? extends BaseRequestHandler > handlerClass = classLoader . loadClass ( handlerClassName ) . asSubclass ( BaseRequestHandler . class ) ; Constructor < ? extends BaseRequestHandler > constructor = handlerClass . getConstructor ( String . class ) ; return constructor . newInstance ( uri ) ; }
Loads a {@link BaseRequestHandler} class from the extension dex.