You are here

Installing Spring Loaded

Shows how to install Spring Loaded to allow hot reloading of code.
Spring Loaded is a Java agent that allows hot reloading of classes in a running JVM. Spring Loaded allows you to add/modify/delete methods/fields/constructors. The annotations on types/methods/fields/constructors can also be modified and it is possible to add/remove/change values in enum types. The project can be downloaded from its GitHub page.
  1. Point your browser at the Spring Loaded project page on GitHub.
  2. Download the JAR file.
  3. Make a note of the path to the downloaded JAR file. For example, /Users/tbedford/Downloads/springloaded-1.2.0.RELEASE.jar.

    Attention: You will need to know the exact location of the JAR file when you set up Eclipse to work with the Alfresco SDK archetype projects.
  4. This step is not actually required to make Spring Loaded work with Eclipse, but it is useful, as you can then use Spring Loaded when running projects from the command line. Modify your MAVEN_OPTS to include the path to Spring Loaded:

    MAVEN_OPTS="-Xms1024m -Xmx4096m -XX:PermSize=1024m -javaagent:/Users/tbedford/Downloads/springloaded-1.2.0.RELEASE.jar -noverify"                        
    Attention: Modify the path to Spring Loaded to suit your system.
You have downloaded Spring Loaded and made it available for use in Eclipse projects.

Sending feedback to the Alfresco documentation team

You don't appear to have JavaScript enabled in your browser. With JavaScript enabled, you can provide feedback to us using our simple form. Here are some instructions on how to enable JavaScript in your web browser.