/** * 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); }
protected void readFromParcel(Parcel in) { mConnected = in.readInt() == 1; try { mInterfaceClass = VehicleInterfaceFactory.findClass( in.readString()); } catch(VehicleInterfaceException e) { Log.w(TAG, "Unable to load class for vehicle interface by name", e); } }
interfaceType = VehicleInterfaceFactory.findClass(interfaceName); } catch(VehicleInterfaceException e) { Log.w(TAG, "Unable to find VI matching " + interfaceName + interfaceType)) { try { mVehicleInterface = VehicleInterfaceFactory.build( interfaceType, VehicleService.this, resource); } catch(VehicleInterfaceException e) {