Merge branch 'master' of ../infrautils
[odlguice.git] / inject-guice-testutils / src / test / java / org / opendaylight / infrautils / inject / guice / testutils / tests / SomeClassWithPostConstruct.java
diff --git a/inject-guice-testutils/src/test/java/org/opendaylight/infrautils/inject/guice/testutils/tests/SomeClassWithPostConstruct.java b/inject-guice-testutils/src/test/java/org/opendaylight/infrautils/inject/guice/testutils/tests/SomeClassWithPostConstruct.java
new file mode 100644 (file)
index 0000000..5febd64
--- /dev/null
@@ -0,0 +1,26 @@
+/*
+ * Copyright (c) 2016 Red Hat, Inc. and others. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
+package org.opendaylight.infrautils.inject.guice.testutils.tests;
+
+import javax.annotation.PostConstruct;
+
+class SomeClassWithPostConstruct implements SomeInterfaceWithPostConstruct {
+
+    boolean isInit = false;
+
+    @Override
+    @PostConstruct
+    public void init() {
+        isInit = true;
+    }
+
+    @Override
+    public boolean isInit() {
+        return isInit;
+    }
+}