当前位置:网站首页>Compile time annotation automatically generates dataholder
Compile time annotation automatically generates dataholder
2022-06-21 14:04:00 【Funny 2233】
Written by Android DataAdapter as well as DataHolder It has been a very troublesome time , So I want to use compile time annotations without affecting the performance of automatic generation DataAdapter as well as DataHolder But a closer look reveals , To unify DataAdapter Is a very troublesome thing and DataAdapter Not only manage data, but also manage events , Events require a variety of resources , Therefore, it is automatically generated after the last step DataHolder It mainly manages data
Use effect

The default data binding is to use map Mapping to various situations , The scenario has been processed , You can add custom processors , You can also add a naming processor to handle special view data binding 
Use JavaBean Corresponding to the view object , Because reflection cannot be used at compile time , Can't parse layout.xml Get the corresponding type information , You can only write the full class name in this way 
Use the tool class to pass JavaBean Get the corresponding DataHolder object
Generated files

Project structure

api: Exposure oriented api
compiler: Compile time annotation processor
share:api,compiler Shared objects , because api Android features are required , and compiler To use AbstractProcessor, Cannot rely directly on api project
Code cloud address
https://gitee.com/shaokang123/auto-data-holder
边栏推荐
- [graduation project recommendation] - personnel management system
- Postman reports error write eproto 93988952error10000f7ssl routinesopenssl_ internalWRONG_ VERSION_ NUM
- Blazer page element authorization -- use of the authorizeview component
- Lamp Architecture 3 -- compilation and use of PHP source code
- IMU selection, calibration error analysis, AHRS integrated navigation
- Test the interface between app and wechat applet
- [test process and theory - test process system]
- C language -- program compilation and linking
- Disputes between chromedriver, geckodriver, microsoftwebdriver, iedriverserver and operadriver
- MySQL - built in functions
猜你喜欢

A blazor webassembly application that can automatically generate page components based on objects or types

Oracle client11 and pl/sql12 installation

Design interface automation test cases by hand: establish database instances and test case tables
![[googolu] takeout rebate system - business domain name of KFC configuration applet](/img/54/d30b9c08e46760dac8c3405716941f.jpg)
[googolu] takeout rebate system - business domain name of KFC configuration applet

Teach you how to design interface automation test cases: extract interface information and analyze it

Swift return button

3D slicer import label and view label

MySQL - table constraints

Taobao secsha plug-in

C language -- program compilation and linking
随机推荐
Summary of the latest remote deployment O & M tools
Test the interface between app and wechat applet
Redis cluster deployment manual that Xiaobai can understand
Getting started with qt-1-ui
Installation of oracle19c under alicloud lightweight application server linux-centos7
[untitled]
Please, don't use pessimistic locks in high concurrency scenarios!
2. reference
Technology sharing | a clustering incremental statistical SQL requirement in MySQL
MySQL - index
May the mountains and rivers be safe
C language elementary level (10) type rename typedef
Turn to the countdown for coupon issuance! First look at the rules of interstellar pocket donation
Alibaba cloud log service is available in Net project
Alibaba cloud link tracking is on the Net project (Jaeger trace)
Is the micro securities account opening regular and safe? How to open an account?
[test process and theory - test process system]
Heat mapping using Seaborn
Babbitt yuancosmos daily must read: wechat may ban a official account for the first time on the grounds of "involving secondary transactions in digital collections", and the new regulations of the pla
Lamp architecture 4 -- MySQL source code compilation and use