/** * Retrieve the Class for a given name and construct an instance of it. * * @throws VehicleInterfaceException If the named interfaced could not be * found or if its constructor threw an exception. * @see #build(Class, Context, String) */ public static VehicleInterface build(String interfaceName, Context context, String resource) throws VehicleInterfaceException { return build(findClass(interfaceName), context, resource); }
interfaceType)) { try { mVehicleInterface = VehicleInterfaceFactory.build( interfaceType, VehicleService.this, resource); } catch(VehicleInterfaceException e) {