beadledom-guice¶
Overview¶
This project is an extension to Guice core - contains Guice specific utilities.
Download¶
Download using Maven:
<dependencies>
...
<dependency>
<groupId>com.cerner.beadledom</groupId>
<artifactId>beadledom-guice</artifactId>
<version>[Insert latest version]</version>
</dependency>
...
</dependencies>
Usage¶
- BindingAnnotations - Validates the Guice binding annotations.
- isBindingAnnotation - returns true if the argument is a binding annotation i.e., the given annotation should be annotated with either
@BindingAnnotation
or@Qualifier
, otherwise false. * Example:BindingAnnotations.isBindingAnnotation(classOf[Override]) // false
- checkIsBindingAnnotation - throws the
IllegalArgumentException
exception if the annotation is not theBindingAnnotation
or aQualifier
, otherwise returns the argument. * Example:BindingAnnotations.checkIsBindingAnnotation(classOf[TestBindingAnnotation]) // TestBindingAnnotation
- isBindingAnnotation - returns true if the argument is a binding annotation i.e., the given annotation should be annotated with either