kryptonbutterfly / CacheBuilder

ByteCode manipulator used to decorate methods using @Cache annotations.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CacheBuilder Maven Package

ByteCode manipulator used to decorate methods using @Cache annotations.

It can be used as a build target in your ide or as a maven plugin (requires version 3.0.0 or higher).

Getting the latest release

<repository>
  <id>github</id>
  <url>https://maven.pkg.github.com/kryptonbutterfly/maven-repo</url>
</repository>
<dependency>
  <groupId>kryptonbutterfly</groupId>
  <artifactId>cache_builder</artifactId>
  <version>3.0.0</version>
</dependency>

Configure as maven plugin

<build>
  …
  <plugins>
    …
    <plugin>
      <groupId>kryptonbutterfly</groupId>
      <artifactId>cache_builder</artifactId>
      <executions>
        <execution>
          <phase>process-classes</phase>
          <goals>
            <goal>decorate</goal>
          </goals>
          <configuration>
            <!-- Optional: 'target/classes' is the default value -->
            <project.builder.outputDirectory>target/classes</project.builder.outputDirectory>
            <!-- Optional: '.class' is the default value -->
            <classFileExtension>.class</classFileExtension>
          </configuration>
        </execution>
      </executions>
    </plugin>
    …
  </plugins>
  …
</build>

Download

java version library version Download
18+ 3.0.0 cacheb_builder-3.0.0.jar
cache_builder-3.0.0-setup.zip
cache_builder-3.0.0-setup.targ.gz
18+ 2.0.0 cache_builder-2.0.0-setup.zip
cache_builder-2.0.0-setup.tar.gz
18+ 1.1.0 CacheBuilder.zip
CacheBuilder.tar.gz
18+ 1.0.0 CacheASM.zip

Install

extract CacheASM.zip in your eclipse install directory.

Project Setup

Import launch config into workspace

  • click File
  • click Import…
  • select Run/Debug ➜ Launch Configuration
  • click Next >
  • click Browse…
  • navigate to eclipse install directory/builder/launch-configs
    "eclipse install directory"/builder/launch-configs
  • click Open
  • highlight launch-config select Cache.launch
  • click Finish

Setup launch config as project builder

  • right click your project
  • select Properties
  • select Builders
  • click Import…
  • select Cache
  • click OK
  • click Edit…
  • open the Tab Build Options
  • select the CheckBoxes:
    • Allocate Console
    • After a "Clean"
    • During manual builds
    • During auto builds
  • click Apply
  • click OK
  • click Apply and Close

About

ByteCode manipulator used to decorate methods using @Cache annotations.

License:Apache License 2.0


Languages

Language:Java 71.4%Language:Shell 28.6%