2016/02/07 - Apache Onami has been retired.

For more information, please explore the Attic.

Welcome to Apache Onami-Lifecycle JSR-250!

People often complained the Google Guice lack of support of EJB3.0 @PostConstruct and @PreDestroy annotations to manage the injected objects lifecycle.

This small library aims to add that support in a lightweight yet dynamic way, allowing users define the annotations type they want to use to mark methods to execute once the injection is performed and when shutting down the application.

Before starting

Apache Onami-Lifecycle JSR-250 is available on the Maven Central repo, you just need to add the dependency below in your pom.xml file:

<dependencies>
  ...
  <dependency>
    <groupId>org.apache.onami.lifecycle</groupId>
    <artifactId>org.apache.onami.lifecycle.jsr250</artifactId>
    <version>0.2.0-SNAPSHOT</version>
  </dependency>
  ...
</dependencies>