• Angular2, JavaScript libraries and TypeScript

    Create an Angular2 project, following the quick start is a good choice Angular2 QuickStart.

    I’m going to use bower to install Lory which is a simple carousel which can easily be used with ES6 imports

    bower install lory --save
    

    Now, following the Lory API we need to create a definition file for TypeScript, first we’ll create the defintion of the function used to create a Lory carousel

  • HK2 with Jersey

    Add the HK2 inhabitant generator plugin to the pom.xml of your project

    <plugin>
      <groupId>org.glassfish.hk2</groupId>
        <artifactId>hk2-inhabitant-generator</artifactId>
        <version>2.4.0</version>
        <executions>
          <execution>
            <goals>
              <goal>generate-inhabitants</goal>
            </goals>
          <execution>
        </execution>
      </executions>
    </plugin>

    Create a component provider which will populate the ServiceLocator created by Jersey