2 * Copyright (c) 2017 Red Hat, Inc. and others. All rights reserved.
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
8 package org.opendaylight.odlguice.inject.guice.testutils;
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;
15 * Guice module with built-in Mycila Guice Extensions for JSR-250 &
16 * Closeable support for {@literal @}PreDestroy & {@literal @}PostConstruct.
18 * @author Michael Vorburger.ch
20 public class AnnotationsModule extends AbstractModule {
23 protected void configure() {
24 install(new CloseableModule());
25 install(new Jsr250Module());