brooth / jeta Goto Github PK
View Code? Open in Web Editor NEWHome Page: http://brooth.github.io/jeta
License: Apache License 2.0
Home Page: http://brooth.github.io/jeta
License: Apache License 2.0
Jeta - is an Open Source library, built on the top of javax.annotation.processing.
Is that wrap just for wrap?:)
Using *.class
constants in MapMetasitory triggers eager loading of those classes (including invocation of static initializers). Classloading is slow and triggering too much of it early is a major anti-pattern. Square (creators of Dagger) stumbled upon the issue of excess classloading in Dagger 1, which was combining moderate use of reflection with APT. That caused some Dagger contributors to become so deeply disillusioned with whole thing, that they created Dagger 2, which forces it's users to write names of not-yet-generated classes in code (which IMO is a bit too much).
A possible workaround is to map class names to constructors instead:
private static getMetacodeInner(String className) {
switch(className) {
case "com.example.HelloWorld":
return new HelloWorldMetacode();
case "com.example.SomeOtherClass":
return new SomeOtherClassMetacode();
default:
return null;
}
}
This approach is still Proguard-friendly and does not cause excess classloading in any modern JVMs. In addition it avoids creation of an unnecessary map (especially since all required information is already available at compile time).
metacode rebuild take very long time, even there is only one file modified.
utd.enable
set to true
in jeta.properties
I followed the userguide but there is an error at runtime: Failed to load class com.example.MetasitoryContainer
I did some search but no idea how to make it works
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.