Change all the package names from infrautils to odlguice
[odlguice.git] / inject / inject-guice-testutils / src / main / java / org / opendaylight / odlguice / inject / guice / testutils / AnnotationsModule.java
1 /*
2  * Copyright (c) 2017 Red Hat, Inc. and others. All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 package org.opendaylight.odlguice.inject.guice.testutils;
9
10 import com.google.inject.AbstractModule;
11 import org.opendaylight.odlguice.inject.guice.extensions.closeable.CloseableModule;
12 import org.opendaylight.odlguice.inject.guice.extensions.jsr250.Jsr250Module;
13
14 /**
15  * Guice module with built-in Mycila Guice Extensions for JSR-250 &
16  * Closeable support for {@literal @}PreDestroy & {@literal @}PostConstruct.
17  *
18  * @author Michael Vorburger.ch
19  */
20 public class AnnotationsModule extends AbstractModule {
21
22     @Override
23     protected void configure() {
24         install(new CloseableModule());
25         install(new Jsr250Module());
26     }
27
28 }