Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Gradle_plugin_android_aspectjx | 3,499 | 2 years ago | 145 | apache-2.0 | Groovy | |||||
A Android gradle plugin that effects AspectJ on Android project and can hook methods in Kotlin, aar and jar file. | ||||||||||
Android Gradle Aspectj | 342 | a year ago | 36 | apache-2.0 | Kotlin | |||||
gradle plug-in adding supports of AspectJ into Android project | ||||||||||
Aspectjaop | 22 | 6 years ago | Java | |||||||
Jotserver | 14 | 8 years ago | Java | |||||||
Java Open Tibia server implementation made using SQL database for storage, AspectJ, JUnit, Apache MINA, StripesFramework, and Maven. | ||||||||||
Classconflictcheck | 9 | 8 years ago | Java | |||||||
检测类路径下是否存在jar包中的class冲突,通常用于web应用的lib目录下class冲突检查 | ||||||||||
Hashshmash | 7 | 4 years ago | 1 | May 15, 2013 | apache-2.0 | Java | ||||
An aspectj project for evaluating Hash Collection/hashCode() dispersement quality | ||||||||||
So_aj_mavenweavejdk | 5 | 6 years ago | Java | |||||||
Multi-module Maven project showing how to weave aspects into JDK/JRE classes | ||||||||||
Android Gradle Aspectj | 4 | 4 years ago | apache-2.0 | Kotlin | ||||||
gradle plug-in adding supports of AspectJ into Android project | ||||||||||
Swf Flow Gradle | 3 | 6 years ago | apache-2.0 | Java | ||||||
Example of how to use AWS SWF Flow Framework with Gradle and IntelliJ |
An aspectj library for evaluating the various metrics about hashed collections at runtime, such as:
To use, apply the aspect to your code with an ant task such as this:
<target name="aspects" xmlns:aspectj="antlib:org.aspectj">
<aspectj:iajc outJar="${build.dir}/${your_jar_name}_aj.jar" showWeaveInfo="true">
<aspectpath>
<pathelement location="${lib.dir}/hashshmash-0.2.0.jar"/>
</aspectpath>
<inpath>
<pathelement location="${build.dir}/${your_jar_name}.jar"/>
</inpath>
<classpath>
<pathelement location="${lib.dir}/aspectjrt.jar"/>
<path refid="your.classpath"/>
</classpath>
</aspectj:iajc>
</target>
When compiling the aspectjtools.jar should be in ant/lib
Then delete your original jar ${build.dir}/${your_jar_name}.jar and just use ${build.dir}/${your_jar_name}_aj.jar You will need to include aspectj.jar and hashshmash.jar in your classpath when running your application.
The aspect will generate a file in ${user.home}/.hashshmash with allocation information in the form
Type \t AllocationTime \t AllocationSite \t CollectionSize \t NumberOfBuckets \t UsedBuckets
You will need aspectjtools.jar to apply the aspect to your code, as well as aspectjrt.jar to run it.
Once you have collected a statistics file by running with aspects, you can generate an html report by running
java -classpath hashsmhash.jar:aspectjrt.jar:xml-apis.jar:xalan.jar:serializer.jar com.mebigfatguy.hashshmash.Report
or if using ant, there is an ant task
<target name="report" xmlns:report="com.mebigfatguy.hashsmash.report">
<report:report/>
</target>
HashShmash is available on maven.org
groupId: com.mebigfatguy.hashshmash
artifactid: hashshmash
version: 0.2.0