/** * DO NOT EDIT THIS FILE!!! IT WAS GENERATED BY AROUTER. */ publicclassTestInjectActivity$$ARouter$$AutowiredimplementsISyringe{ private SerializationService serializationService;
@Override publicvoidinject(Object target){ //【1】获取序列化服务; serializationService = ARouter.getInstance().navigation(SerializationService.class); //【2】获取目标 activity TestInjectActivity substitute = (TestInjectActivity)target; //【3】通过 getIntent 来处理传递的数据; substitute.str = substitute.getIntent().getStringExtra("str1"); substitute.bool = substitute.getIntent().getBooleanExtra("bool1", substitute.bool); substitute.shortNum = substitute.getIntent().getShortExtra("shortNum1", substitute.shortNum); substitute.intNum = substitute.getIntent().getIntExtra("intNum", substitute.intNum); if (null != serializationService) { substitute.intNumArray = serializationService.parseObject(substitute.getIntent().getStringExtra("intNumArray"), new com.alibaba.android.arouter.facade.model.TypeWrapper<int[]>(){}.getType()); } else { Log.e("ARouter::", "You want automatic inject the field 'intNumArray' in class 'TestInjectActivity' " + ", then you should implement 'SerializationService' to support object auto inject!"); } substitute.longNum = substitute.getIntent().getLongExtra("longNum", substitute.longNum); substitute.charStr = substitute.getIntent().getCharExtra("charStr1", substitute.charStr); substitute.floatNum = substitute.getIntent().getFloatExtra("floatNum1", substitute.floatNum); if (null != serializationService) { substitute.floatNumArray = serializationService.parseObject(substitute.getIntent().getStringExtra("floatNumArray"), new com.alibaba.android.arouter.facade.model.TypeWrapper<float[]>(){}.getType()); } else { Log.e("ARouter::", "You want automatic inject the field 'floatNumArray' in class 'TestInjectActivity' " + ", then you should implement 'SerializationService' to support object auto inject!"); } substitute.doubleNum = substitute.getIntent().getDoubleExtra("doubleNum", substitute.doubleNum); if (null != serializationService) { substitute.mapStr = serializationService.parseObject(substitute.getIntent().getStringExtra("mapStr"), new com.alibaba.android.arouter.facade.model.TypeWrapper<Map<String, String>>(){}.getType()); } else { Log.e("ARouter::", "You want automatic inject the field 'mapStr' in class 'TestInjectActivity' " + ", then you should implement 'SerializationService' to support object auto inject!"); } if (null != serializationService) { substitute.objList = serializationService.parseObject(substitute.getIntent().getStringExtra("objList"), new com.alibaba.android.arouter.facade.model.TypeWrapper<List<TestInjectActivity.TestOne>>(){}.getType()); } else { Log.e("ARouter::", "You want automatic inject the field 'objList' in class 'TestInjectActivity' " + ", then you should implement 'SerializationService' to support object auto inject!"); } if (null != serializationService) { substitute.testOne = serializationService.parseObject(substitute.getIntent().getStringExtra("testOne"), new com.alibaba.android.arouter.facade.model.TypeWrapper<TestInjectActivity.TestOne>(){}.getType()); } else { Log.e("ARouter::", "You want automatic inject the field 'testOne' in class 'TestInjectActivity' " + ", then you should implement 'SerializationService' to support object auto inject!"); } substitute.testOneParcelable = substitute.getIntent().getParcelableExtra("testOneParcelable"); if (null != serializationService) { substitute.TestTwoParcelable = serializationService.parseObject(substitute.getIntent().getStringExtra("TestTwoParcelable"), new com.alibaba.android.arouter.facade.model.TypeWrapper<TestInjectActivity.TestTwoParcelable>(){}.getType()); } else { Log.e("ARouter::", "You want automatic inject the field 'TestTwoParcelable' in class 'TestInjectActivity' " + ", then you should implement 'SerializationService' to support object auto inject!"); } substitute.helloInterface = (TestInjectActivity.HelloInterface)ARouter.getInstance().build("/test/TestHelloInterface").navigation();; }